name: Verification
on:
push:
branches:
- vcalyx
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Build VCalyx
runs-on: ubuntu-latest
container: ghcr.io/cucapra/calyx:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get bwrap for opam
run: |
apt-get update -y
apt-get install -y bubblewrap
- name: Set up opam and OCaml 4.13.1
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.13.1
- name: Checkout commit that triggered run
run: |
git fetch --all
git checkout $GITHUB_SHA
- name: Install dependencies
run: |
cd vcalyx
opam install dune
opam repo add coq-released https://coq.inria.fr/opam/released
opam install . --deps-only
opam install coq yojson core core_unix ppx_deriving coq-stdpp coq-ceres
- name: Build with dune
run: |
cd vcalyx
opam exec -- dune build