File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 88 - main
99
1010jobs :
11+ dev-build :
12+
13+ name : Dev build
14+
15+ strategy :
16+ matrix :
17+ version : [4.14.1]
18+ compiler : [gcc, clang-19]
19+
20+ runs-on : ubuntu-24.04
21+
22+ steps :
23+ - name : Checkout CN
24+ uses : actions/checkout@v4
25+
26+ - name : System dependencies (ubuntu)
27+ run : |
28+ sudo apt-get install build-essential libgmp-dev z3 opam
29+
30+ - name : Install Clang
31+ if : ${{ matrix.compiler != 'gcc' }}
32+ run : |
33+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
34+ sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
35+ sudo add-apt-repository "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-19 main"
36+ sudo apt-get update
37+ sudo apt-get install clang-19
38+
39+ - name : Restore OPAM cache
40+ id : cache-opam-restore
41+ uses : actions/cache/restore@v4
42+ with :
43+ path : ~/.opam
44+ key : ${{ matrix.version }}-${{ hashFiles('cn.opam') }}
45+
46+ - name : Setup OPAM
47+ if : steps.cache-opam-restore.outputs.cache-hit != 'true'
48+ run : |
49+ opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }}
50+ eval $(opam env --switch=${{ matrix.version }})
51+ opam repo add --yes --this-switch coq-released https://coq.inria.fr/opam/released
52+ opam install --deps-only --with-test --yes ./cn.opam z3
53+
54+ - name : Save OPAM cache
55+ uses : actions/cache/save@v4
56+ if : steps.cache-opam-restore.outputs.cache-hit != 'true'
57+ with :
58+ path : ~/.opam
59+ key : ${{ matrix.version }}-${{ hashFiles('cn.opam') }}
60+
61+ - name : Build CN
62+ run : |
63+ opam switch ${{ matrix.version }}
64+ eval $(opam env --switch=${{ matrix.version }})
65+ dune build cn.install --profile=dev
66+
1167 ounit-tests :
1268 strategy :
1369 matrix :
You can’t perform that action at this time.
0 commit comments