Debian Codegraph @

.github/workflows/ci-github.yml

raw symbols SCIP
1 name: Github CI
2
3 on: [push, pull_request]
4
5 permissions:
6 contents: read
7
8 # Cancels previous runs of the same workflow
9 concurrency:
10 group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
11 cancel-in-progress: true
12
13 jobs:
14 build:
15 strategy:
16 matrix:
17 include:
18 - name: macOS
19 os: macos-latest
20 ocaml: 4.14
21 test_disabled:
22 # We exclude the coq-core package
23 packages: ./coqide-server.opam ./rocq*.opam
24 - name: Windows
25 os: windows-latest
26 ocaml: 4.14
27 test_disabled: misc coq-makefile precomputed-time-tests
28 # we don't support rocqide on Windows yet, so we filter it, see #20631
29 packages: ./coqide-server.opam ./rocq-*.opam
30 - name: Linux (latest OCaml)
31 os: ubuntu-latest
32 ocaml: 5
33 test_disabled:
34 packages: ./coqide-server.opam ./rocq*.opam
35 fail-fast: false
36
37 name: ${{ matrix.name }}
38 runs-on: ${{ matrix.os }}
39 timeout-minutes: 45
40 steps:
41 - name: 🐛 Special macOS Config
42 if: matrix.os == 'macos-latest'
43 run: brew install gnu-time
44
45 - name: APT update
46 if: matrix.os == 'ubuntu-latest'
47 run: sudo apt-get update
48
49 - name: 🔭 Checkout code
50 uses: actions/checkout@v4
51
52 - name: 🐫 Setup OCaml
53 uses: ocaml/setup-ocaml@v3
54 with:
55 ocaml-compiler: ${{ matrix.ocaml }}
56 dune-cache: true
57
58 - name: 🐫🐪🐫 Get Rocq dependencies
59 run: opam install --deps-only ${{ matrix.packages }}
60
61 - name: 🧱 Build Rocq
62 run: opam exec -- make world
63
64 - name: 🐛 Test Rocq
65 run: opam exec -- make -j 4 -C test-suite TIMED=1 DISABLED_SUBSYSTEMS='${{ matrix.test_disabled }}'