-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (38 loc) · 1.11 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
name: Docker CI
on:
schedule:
- cron: '25 5 * * *'
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:1.12.0-coq-8.13'
- 'mathcomp/mathcomp:1.12.0-coq-8.12'
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: coq-community/docker-coq-action@v1
with:
opam_file: 'coq-graph-theory.opam'
custom_image: ${{ matrix.image }}
# we manually install the optional dependency coq-fourcolor
install: |
startGroup "Install dependencies"
opam pin add -n -y -k path $PACKAGE $WORKDIR
opam update -y
opam install -y -j 2 $PACKAGE --deps-only
opam install -y -j 2 coq-fourcolor
endGroup
# See also:
# /~https://github.com/coq-community/docker-coq-action#readme
# /~https://github.com/erikmd/docker-coq-github-action-demo