Coq small fixes #7
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: Extract and Run - Coq | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: coqorg/coq:8.18.0-ocaml-4.13.1-flambda | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- uses: dtolnay/[email protected] | |
- run: cargo install --path cli/driver && cargo install --path cli/subcommands | |
- name: opam setup | |
run: | | |
export HOME=/home/coq | |
export PATH=$HOME/.cargo/bin:$PATH | |
env | |
opam switch 4.13.1+flambda | |
eval $(opam env) | |
- run: opam install . --deps-only | |
working-directory: engine | |
- run: | | |
opam exec -- dune build | |
opam exec -- dune install | |
working-directory: engine | |
- name: Build | |
working-directory: examples/coverage | |
run: | | |
sudo apt-get install jq -y | |
./setup.sh | |
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh | |
sudo bash /tmp/nodesource_setup.sh | |
cargo hax into coq | |
cd proofs/coq/extraction | |
sed 's/_impl_f_/_f_/' < Coverage_Test_instance.v > Coverage_Test_instance.v | |
coq_makefile -f _CoqProject -o Makefile | |
make |