-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 1017 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# See https://github.com/coq-community/docker-coq-action#readme
name: Docker CI
on: [push, pull_request]
jobs:
build_nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build .#coq-artifact
build:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- 'coqorg/coq:8.17'
- 'coqorg/coq:8.18'
max-parallel: 4
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-gitrees.opam'
install: |
startGroup "Install dependencies"
sudo apt-get update -y -q
opam pin add -n -y -k path $PACKAGE $WORKDIR
opam update -y
opam install --confirm-level=unsafe-yes -j 2 $PACKAGE --deps-only
endGroup
custom_image: ${{ matrix.image }}