Skip to content

Commit e9d7daf

Browse files
authored
Fix CI to use Cerberus deps (#98)
CI broke because the build script pins specific versions of Cerberus dependencies, which Cerberus has since changed. The solution is to use the Cerberus dependency requirements in its OPAM files when building CN in CI.
1 parent e58866a commit e9d7daf

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/run-cn-examples.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,12 @@ jobs:
3737
path: ~/.opam
3838
key: ${{ matrix.version }}
3939

40-
- name: Setup opam
41-
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
40+
- name: Setup opam and install dependencies
4241
run: |
4342
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}
44-
opam install --deps-only --yes ./cerberus-lib.opam
45-
opam switch create with_coq ${{ matrix.version }}
46-
eval $(opam env --switch=with_coq)
47-
opam repo add --yes --this-switch coq-released https://coq.inria.fr/opam/released
48-
opam pin --yes -n coq-struct-tact https://github.com/uwplse/StructTact.git
49-
opam repo add --yes --this-switch iris-dev https://gitlab.mpi-sws.org/iris/opam.git
50-
opam pin --yes -n coq-sail-stdpp https://github.com/rems-project/coq-sail.git#f319aad
51-
opam pin --yes -n coq-cheri-capabilities https://github.com/rems-project/coq-cheri-capabilities.git
52-
opam install --deps-only --yes ./cerberus-lib.opam ./cerberus-cheri.opam
43+
opam install --deps-only --yes ./cerberus.opam ./cerberus-lib.opam ./cn.opam
5344
5445
- name: Save cached opam
55-
if: steps.cache-opam-restore.outputs.cache-hit != 'true'
5646
id: cache-opam-save
5747
uses: actions/cache/save@v4
5848
with:

0 commit comments

Comments
 (0)