Corrections in doc #544
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |