Test more versions of Coq (#100) #143
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: CI (Coq, docker) | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
coq-version: [ "dev" , "8.18" , "8.17" , "8.16" ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: all | |
uses: coq-community/docker-coq-action@v1 | |
with: | |
coq_version: ${{ matrix.coq-version }} | |
ocaml_version: default | |
custom_script: | | |
sudo chmod -R a+rw . | |
startGroup 'install general dependencies' | |
sudo apt-get update -y | |
sudo apt-get install -y python python3 | |
eval $(opam env) | |
endGroup | |
export TARGETS="fiat-core parsers" | |
export FLAGS="PROFILE=1" | |
export NJOBS="2" | |
git config --global --add safe.directory "*" | |
startGroup make | |
etc/coq-scripts/timing/make-pretty-timed.sh -j$NJOBS $TARGETS $FLAGS && make TIMED=1 -j$NJOBS $TARGETS | |
endGroup | |
check-all-docker: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: always() | |
steps: | |
- run: echo 'build passed' | |
if: ${{ needs.build.result == 'success' }} | |
- run: echo 'build failed' && false | |
if: ${{ needs.build.result != 'success' }} |