-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (54 loc) · 1.83 KB
/
docker-action.yml
File metadata and controls
57 lines (54 loc) · 1.83 KB
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
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:
- 'coqorg/coq:dev'
- 'coqorg/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: |
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 verdi-runtime dependencies"
opam pin add cheerios-runtime -n -y -k git https://github.com/uwplse/cheerios.git
opam pin add verdi-runtime -n -y -k path .
opam update -y
opam install -y -j $(nproc) verdi-runtime --deps-only
endGroup
startGroup "Build verdi-runtime"
opam install -y -v -j $(nproc) verdi-runtime
opam list
endGroup
startGroup "Build vard dependencies"
opam pin add vard -n -y -k git https://github.com/uwplse/verdi-raft.git
opam update -y
opam install -y -j $(nproc) vard --deps-only
endGroup
startGroup "Build vard"
opam install -y -v -j $(nproc) vard
opam list
endGroup
startGroup "Uninstallation test"
opam remove -y vard
opam remove -y verdi-runtime
endGroup
# See also:
# https://github.com/coq-community/docker-coq-action#readme
# https://github.com/erikmd/docker-coq-github-action-demo