Skip to content

new CI

new CI #165

Workflow file for this run

name: coq-library-undecidability CI
on:
push:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
coq_version:
- '9.0'
ocaml_version:
- '4.14-flambda'
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Docker-Coq-Action
uses: rocq-community/docker-coq-action@v1
with:
coq_version: ${{ matrix.coq_version }}
ocaml_version: ${{ matrix.ocaml_version }}
before_script: |
startGroup "Workaround permission issue"
sudo chown -R 1000:1000 . # <--
opam exec -- ocamlfind list
opam install rocq-equations coq-stdpp
endGroup
before_install: |
startGroup "Print opam config"
sudo chown -R 1000:1000 .
opam config list; opam repo list; opam list
endGroup
script: |
startGroup "Build project"
opam exec -- make -j 2 all TIMED=1
endGroup
uninstall: |
startGroup "Clean project"
endGroup
- name: Revert permissions
# to avoid a warning at cleanup time
if: ${{ always() }}
run: sudo chown -R 1001:116 . # <--
# name: Test compilation
# on: [push, pull_request]
# jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# target: [ opam ]
# steps:
# - name: Try to restore opam cache
# id: opam-cache
# uses: actions/cache@v2
# with:
# path: "~/.opam"
# key: opam-PT-${{github.base_ref}}-${{github.ref}}
# restore-keys: |
# opam-PT--refs/heads/${{github.base_ref}}
# - name: Install OCaml
# uses: avsm/setup-ocaml@v2
# with:
# ocaml-compiler: 4.14
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# fetch-depth: 1
# - run: opam switch
# - run: opam install coq-equations.1.3+8.17 coq-stdpp.1.8.0 coq-library-undecidability.1.1+8.17
# - run: opam exec -- make -j 2
# - run: opam install coq-library-undecidability.1.1+8.17
# - run: opam exec -- make models -j 2