Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ jobs:
ref: 6e3971e07897f17e06cd21c4e20558ea4161861a
path: peregrine-tool

- name: Restore OPAM cache
id: opam-cache
uses: actions/cache@v5
with:
path: "~/.opam"
key: opam-${{matrix.ocaml}}-${{hashFiles('peregrine-tool/.github/rocq-peregrine.opam.locked')}}
restore-keys: |
opam-${{matrix.ocaml}}-

- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
Expand All @@ -105,3 +114,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: test/html

- name: OPAM cache clean-up
run: |
opam remove rocq-peregrine
opam pin remove rocq-peregrine
eval $(opam env)
opam clean -a -c -s --logs
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: default build install html clean
.PHONY: default build install coq html clean

default: build

Expand All @@ -13,6 +13,10 @@ test: test/Tests.agda
test/Tests.agda: test/Main.hs test/agda2lambox-tests.agda-lib test/untyped/*.agda test/typed/*.agda test/agda2rust/*.agda
cabal test

coq:
coq_makefile -f _CoqProject -o CoqMakefile
make -f CoqMakefile

html: test
make -C test html

Expand Down