-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (83 loc) · 2.99 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
80
81
82
83
84
85
86
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-dev:coq-dev'
- 'mathcomp/mathcomp-dev:coq-8.17'
- 'mathcomp/mathcomp-dev:coq-8.16'
- 'mathcomp/mathcomp:2.0.0-coq-8.17'
- 'mathcomp/mathcomp:2.0.0-coq-8.16'
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: coq-community/docker-coq-action@v1
with:
custom_image: ${{ matrix.image }}
custom_script: |
{{before_install}}
startGroup "Build gaia-theory-of-sets dependencies"
opam pin add -n -y -k path coq-gaia-theory-of-sets .
opam update -y
opam install -y -j 2 coq-gaia-theory-of-sets --deps-only
endGroup
startGroup "Build gaia-theory-of-sets"
opam install -y -v -j 2 coq-gaia-theory-of-sets
opam list
endGroup
startGroup "Build gaia-schutte dependencies"
opam pin add -n -y -k path coq-gaia-schutte .
opam update -y
opam install -y -j 2 coq-gaia-schutte --deps-only
endGroup
startGroup "Build gaia-schutte"
opam install -y -v -j 2 coq-gaia-schutte
opam list
endGroup
startGroup "Build gaia-ordinals dependencies"
opam pin add -n -y -k path coq-gaia-ordinals .
opam update -y
opam install -y -j 2 coq-gaia-ordinals --deps-only
endGroup
startGroup "Build gaia-ordinals"
opam install -y -v -j 2 coq-gaia-ordinals
opam list
endGroup
startGroup "Build gaia-numbers dependencies"
opam pin add -n -y -k path coq-gaia-numbers .
opam update -y
opam install -y -j 2 coq-gaia-numbers --deps-only
endGroup
startGroup "Build gaia-numbers"
opam install -y -v -j 2 coq-gaia-numbers
opam list
endGroup
startGroup "Build gaia-stern dependencies"
opam pin add -n -y -k path coq-gaia-stern .
opam update -y
opam install -y -j 2 coq-gaia-stern --deps-only
endGroup
startGroup "Build gaia-stern"
opam install -y -v -j 2 coq-gaia-stern
opam list
endGroup
startGroup "Uninstallation test"
opam remove -y coq-gaia-stern
opam remove -y coq-gaia-numbers
opam remove -y coq-gaia-ordinals
opam remove -y coq-gaia-schutte
opam remove -y coq-gaia-theory-of-sets
endGroup
# See also:
# https://github.com/coq-community/docker-coq-action#readme
# https://github.com/erikmd/docker-coq-github-action-demo