Skip to content

Commit

Permalink
Test more versions of Coq (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross authored Oct 6, 2023
1 parent ffcc08d commit fa8e3fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/coq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ jobs:
submodules: recursive
- name: SCRIPT
run: ./etc/coq-scripts/timing/make-pretty-timed.sh -j$NJOBS $TARGETS $FLAGS && make TIMED=1 -j$NJOBS $TARGETS


check-all:
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' }}
27 changes: 22 additions & 5 deletions .github/workflows/docker-coq.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (Coq, docker, dev)
name: CI (Coq, docker)

on:
push:
Expand All @@ -7,6 +7,11 @@ on:

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
Expand All @@ -15,17 +20,29 @@ jobs:
- name: all
uses: coq-community/docker-coq-action@v1
with:
coq_version: dev
ocaml_version: 4.13-flambda
coq_version: ${{ matrix.coq-version }}
ocaml_version: default
custom_script: |
sudo chmod -R a+rw .
echo '::group::install general dependencies'
startGroup 'install general dependencies'
sudo apt-get update -y
sudo apt-get install -y python python3
eval $(opam env)
echo '::endgroup::'
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' }}

0 comments on commit fa8e3fc

Please sign in to comment.