Skip to content

update nix-action from templates #32

update nix-action from templates

update nix-action from templates #32

Workflow file for this run

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.18'
- 'coqorg/coq:8.17'
- 'coqorg/coq:8.16'
- 'coqorg/coq:8.15'
- 'coqorg/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: |
{{before_install}}
startGroup "Build chapar dependencies"
opam pin add -n -y -k path coq-chapar .
opam update -y
opam install -y -j 2 coq-chapar --deps-only
endGroup
startGroup "Build chapar"
opam install -y -v -j 2 coq-chapar
opam list
endGroup
startGroup "Build chapar-stores dependencies"
opam pin add -n -y -k path coq-chapar-stores .
opam update -y
opam install -y -j 2 coq-chapar-stores --deps-only
endGroup
startGroup "Build chapar-stores"
opam install -y -v -j 2 coq-chapar-stores
opam list
endGroup
startGroup "Uninstallation test"
opam remove -y coq-chapar-stores
opam remove -y coq-chapar
endGroup
# See also:
# https://github.com/coq-community/docker-coq-action#readme
# https://github.com/erikmd/docker-coq-github-action-demo