-
Notifications
You must be signed in to change notification settings - Fork 12
79 lines (76 loc) · 2.79 KB
/
docker-action.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Docker CI
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
build:
# the OS must be GNU/Linux to be able to use the docker-coq-action
runs-on: ubuntu-latest
strategy:
matrix:
image:
- 'mathcomp/mathcomp:1.18.0-coq-8.18'
- 'mathcomp/mathcomp:1.17.0-coq-8.17'
- 'mathcomp/mathcomp:1.15.0-coq-8.16'
- 'mathcomp/mathcomp:1.14.0-coq-8.15'
- 'mathcomp/mathcomp:1.13.0-coq-8.14'
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: coq-community/docker-coq-action@v1
with:
custom_image: ${{ matrix.image }}
custom_script: |
startGroup "Setup and print opam config"
opam repo -a --set-default add coq-extra-dev https://coq.inria.fr/opam/extra-dev
opam config list; opam repo list; opam list
endGroup
startGroup "Build hydra-battles dependencies"
opam pin add -n -y -k path coq-hydra-battles .
opam update -y
opam install -y -j "$(nproc)" coq-hydra-battles --deps-only
endGroup
startGroup "Build hydra-battles"
opam install -y -v -j "$(nproc)" coq-hydra-battles
opam list
endGroup
startGroup "Build addition-chains dependencies"
opam pin add -n -y -k path coq-addition-chains .
opam update -y
opam install -y -j "$(nproc)" coq-addition-chains --deps-only
endGroup
startGroup "Build addition-chains"
opam install -y -v -j "$(nproc)" coq-addition-chains
opam list
endGroup
startGroup "Build gaia-hydras dependencies"
opam pin add -n -y -k path coq-gaia-hydras .
opam update -y
opam install -y -j "$(nproc)" coq-gaia-hydras --deps-only
endGroup
startGroup "Build gaia-hydras"
opam install -y -v -j "$(nproc)" coq-gaia-hydras
opam list
endGroup
startGroup "Build goedel dependencies"
opam pin add -n -y -k path coq-goedel .
opam update -y
opam install -y -j "$(nproc)" coq-goedel --deps-only
endGroup
startGroup "Build goedel"
opam install -y -v -j "$(nproc)" coq-goedel
opam list
endGroup
startGroup "Uninstallation test"
opam remove -y coq-goedel
opam remove -y coq-gaia-hydras
opam remove -y coq-addition-chains
opam remove -y coq-hydra-battles
endGroup
# See also:
# https://github.com/coq-community/docker-coq-action#readme
# https://github.com/erikmd/docker-coq-github-action-demo