Update coq.yml #6
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: Coq Verification | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install opam and Coq | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y opam | |
opam init -y --disable-sandboxing | |
# Create an opam switch with Coq 8.14.1 | |
opam switch create coq-8.14.1 --packages=coq.8.14.1 | |
eval $(opam env --switch=coq-8.14.1) | |
# Pin Coquelicot from its GitHub repository and install it | |
opam pin add -y coquelicot https://github.com/Coq-Project/coquelicot.git | |
opam install -y coquelicot | |
- name: Run Coq Verification | |
run: | | |
eval $(opam env --switch=coq-8.14.1) | |
# Compile all .v files in the coq directory; replace with your Makefile if available | |
find coq -name '*.v' -print0 | xargs -0 -n1 coqc |