-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from camlspotter/jun@ci
Adds GitHub actions
- Loading branch information
Showing
2 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Builds, tests & co | ||
|
||
on: | ||
# pull_request: | ||
push: | ||
# schedule: | ||
# # Prime the caches every Monday | ||
# - cron: 0 1 * * MON | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest | ||
ocaml-compiler: | ||
# - "4.14.1" | ||
- "5.1" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout tree | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set-up OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/[email protected] | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
|
||
- name: Cache _opam directory | ||
id: cache-opam | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-opam | ||
with: | ||
path: _opam | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('icon.opam') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('icon.opam') }} | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
- run: opam install z3.4.12.5 | ||
|
||
- run: opam install . --deps-only --with-test | ||
|
||
- run: opam exec -- why3 config detect | ||
|
||
- run: opam exec -- dune build | ||
|
||
- run: opam exec -- dune runtest | ||
|
||
- run: opam exec -- dune install # required for why3 with the icon plugin | ||
|
||
- run: opam exec -- why3 prove -P z3 examples/boomerang.tzw | ||
- run: opam exec -- why3 prove -P z3 examples/boomerang_acc.tzw | ||
- run: opam exec -- why3 prove -P z3 examples/auction.tzw | ||
- run: opam exec -- why3 prove -P z3 examples/dexter2/liquidity.tzw |
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