adding support for --pp=core
and --ast=core
when running from a C…
#196
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: CI | |
on: | |
push: | |
branches: | |
- master | |
# pull_request: {} | |
# cancel in-progress job when a new push is performed | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
# version: [4.12.0, 4.14.1] | |
version: [4.14.1] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: System dependencies (ubuntu) | |
run: | | |
sudo apt install build-essential libgmp-dev z3 opam | |
- name: Restore cached opam | |
id: cache-opam-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: ~/.opam | |
key: ${{ matrix.version }} | |
- name: Setup opam | |
if: steps.cache-opam-restore.outputs.cache-hit != 'true' | |
run: | | |
opam init --yes --no-setup --shell=sh --compiler=${{ matrix.version }} | |
opam install --deps-only --yes ./cerberus-lib.opam | |
opam switch create with_coq ${{ matrix.version }} | |
eval $(opam env --switch=with_coq) | |
opam repo add --yes --this-switch coq-released https://coq.inria.fr/opam/released | |
opam pin --yes -n coq-struct-tact https://github.com/uwplse/StructTact.git | |
opam repo add --yes --this-switch iris-dev https://gitlab.mpi-sws.org/iris/opam.git | |
opam pin --yes -n coq-sail https://github.com/rems-project/coq-sail.git | |
opam pin --yes -n coq-cheri-capabilities https://github.com/rems-project/coq-cheri-capabilities.git | |
opam install --deps-only --yes ./cerberus-lib.opam ./cerberus-cheri.opam | |
- name: Save cached opam | |
if: steps.cache-opam-restore.outputs.cache-hit != 'true' | |
id: cache-opam-save | |
uses: actions/cache/save@v3 | |
with: | |
path: ~/.opam | |
key: ${{ steps.cache-opam-restore.outputs.cache-primary-key }} | |
- name: Install Cerberus | |
run: | | |
opam switch ${{ matrix.version }} | |
eval $(opam env --switch=${{ matrix.version }}) | |
opam pin --yes --no-action add cerberus-lib . | |
opam pin --yes --no-action add cerberus . | |
opam install --yes cerberus | |
- name: Run Cerberus CI tests | |
run: | | |
opam switch ${{ matrix.version }} | |
eval $(opam env --switch=${{ matrix.version }}) | |
cd tests; USE_OPAM='' ./run-ci.sh | |
cd .. | |
- name: Install CN | |
run: | | |
opam switch ${{ matrix.version }} | |
eval $(opam env --switch=${{ matrix.version }}) | |
opam pin --yes --no-action add cn . | |
opam install --yes cn | |
- name: Install Cerberus-CHERI | |
if: ${{ matrix.version == '4.14.1' }} | |
run: | | |
opam switch with_coq | |
eval $(opam env --switch=with_coq) | |
opam pin --yes --no-action add cerberus-lib . | |
opam pin --yes --no-action add cerberus-cheri . | |
opam install --yes cerberus-cheri | |
# - name: Run Cerberus-CHRI tests | |
# if: ${{ matrix.version == '4.14.1' }} | |
# run: | | |
# eval $(opam env --switch=with_coq) | |
# make cheri-test |