Skip to content

Commit a484502

Browse files
committed
(github) add Rocq to CI
1 parent 2c8417c commit a484502

File tree

1 file changed

+60
-5
lines changed

1 file changed

+60
-5
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ concurrency:
1616

1717
jobs:
1818
build:
19-
strategy:
20-
matrix:
21-
version: [4.14.1]
22-
2319

2420
runs-on: ubuntu-22.04
2521

@@ -49,4 +45,63 @@ jobs:
4945
- name: Run tests
5046
working-directory: rems-project/casemate
5147
run: |
52-
make checks
48+
make check-examples
49+
50+
build_rocq:
51+
strategy:
52+
matrix:
53+
version: [4.12.4]
54+
55+
runs-on: ubuntu-22.04
56+
57+
steps:
58+
59+
- run: mkdir -p rems-project
60+
61+
- uses: actions/checkout@v3
62+
with:
63+
path: rems-project/casemate
64+
65+
- name: System dependencies (ubuntu)
66+
run: |
67+
sudo apt update
68+
sudo apt install build-essential opam
69+
70+
- name: Restore OPAM cache
71+
id: cache-opam-restore
72+
uses: actions/cache/restore@v4
73+
with:
74+
path: ~/.opam
75+
key: ${{ matrix.version }}
76+
77+
- name: Setup OPAM
78+
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
79+
working-directory: rems-project/casemate/src/casemate-check-rocq
80+
run: |
81+
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}
82+
eval $(opam env --switch=${{ matrix.version }})
83+
opam repo add --yes iris-dev https://gitlab.mpi-sws.org/iris/opam.git
84+
opam pin add --yes --no-action https://github.com/tchajed/coq-record-update.git
85+
opam install --deps-only --yes .
86+
opam install --yes .
87+
88+
- name: Save OPAM cache
89+
uses: actions/cache/save@v4
90+
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
91+
with:
92+
path: ~/.opam
93+
key: ${{ matrix.version }}
94+
95+
- name: Install Casemate-rocq
96+
working-directory: rems-project/casemate/src/casemate-check-rocq
97+
run: |
98+
opam switch ${{ matrix.version }}
99+
eval $(opam env --switch=${{ matrix.version }})
100+
opam install --yes .
101+
102+
- name: Run Rocq checks
103+
working-directory: rems-project/casemate
104+
run: |
105+
opam switch ${{ matrix.version }}
106+
eval $(opam env --switch=${{ matrix.version }})
107+
make check-rocq

0 commit comments

Comments
 (0)