# This is a basic workflow to help you get started with Actions name: CI # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: push: branches: [ master ] tags: [ "v*.*.*" ] pull_request: branches: [ master ] jobs: docker: runs-on: ubuntu-latest # container actions require GNU/Linux strategy: matrix: image: - 'rocq/rocq-prover:dev' - 'rocq/rocq-prover:9.2' - 'rocq/rocq-prover:9.1' - 'rocq/rocq-prover:9.0' profile: - dev include: - image: 'rocq/rocq-prover:9.1' profile: fatalwarnings fail-fast: false # don't stop jobs if one fails steps: - uses: actions/checkout@v3 - uses: coq-community/docker-coq-action@v1 with: opam_file: 'rocq-elpi.opam' custom_image: ${{ matrix.image }} install: | sudo apt-get update -y -q opam pin add -n -y -k path rocq-elpi $WORKDIR opam pin add -n -y -k path rocq-elpi-json $WORKDIR opam pin add -n -y -k path rocq-elpi-xml $WORKDIR opam update -y opam install --confirm-level=unsafe-yes -j 2 rocq-elpi --deps-only opam install --confirm-level=unsafe-yes -j 2 rocq-elpi-json --deps-only opam install --confirm-level=unsafe-yes -j 2 rocq-elpi-xml --deps-only uninstall: | opam remove -y rocq-elpi opam remove -y rocq-elpi-json opam remove -y rocq-elpi-xml before_script: | sudo chmod -R a+w . if [ "${{ matrix.profile }}" = "fatalwarnings" ]; then sed -i 's/-A/+A/' dune; fi script: | opam install -y -v -j 2 rocq-elpi opam install -y -v -j 2 rocq-elpi-json opam install -y -v -j 2 rocq-elpi-xml opam list after_script: | make all-examples make all-tests export: 'OPAMWITHTEST OPAMIGNORECONSTRAINTS OPAMVERBOSE' # space-separated list of variables env: OPAMWITHTEST: 'true' #OPAMIGNORECONSTRAINTS: 'rocq-core' OPAMVERBOSE: '1'