Repository navigation
Adapt to Rocq 9.4 and MathComp dev #29
Workflow file for this run
This file contains hidden or 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: 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:2.6.0-rocq-prover-9.0 | |
| - mathcomp/mathcomp:2.6.0-rocq-prover-9.1 | |
| - mathcomp/mathcomp:2.6.0-rocq-prover-9.2 | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: coq-community/docker-coq-action@v1 | |
| with: | |
| opam_file: 'rocq-mathcomp-dioid.opam' | |
| custom_image: ${{ matrix.image }} | |
| custom_script: | | |
| startGroup Print opam config | |
| opam config list; opam repo list; opam list | |
| echo NJOBS=${NJOBS} | |
| endGroup | |
| startGroup Update opam cache | |
| opam update -y | |
| endGroup | |
| startGroup Build rocq-mathcomp-dioid dependencies | |
| opam pin add -n -y -k path rocq-mathcomp-dioid . | |
| opam remove -y rocq-mathcomp-character rocq-mathcomp-field rocq-mathcomp-solvable # rocq-mathcomp-algebra is enough | |
| opam install -y -j ${NJOBS} rocq-mathcomp-dioid --deps-only | |
| opam list | |
| endGroup | |
| startGroup Build rocq-mathcomp-dioid | |
| opam install -y -v -j ${NJOBS} rocq-mathcomp-dioid | |
| opam list | |
| endGroup | |
| startGroup Uninstallation test | |
| opam remove -y rocq-mathcomp-dioid | |
| endGroup | |
| # See also: | |
| # https://github.com/coq-community/docker-coq-action#readme | |
| # https://github.com/erikmd/docker-coq-github-action-demo |