-
Notifications
You must be signed in to change notification settings - Fork 76
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 #296 from goblint/ocaml-ci
Fix CI to correctly use OCaml version matrix
- Loading branch information
Showing
4 changed files
with
121 additions
and
62 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,50 @@ | ||
name: locked | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
regression: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
ocaml-compiler: | ||
- 4.12.0 # matches opam lock file | ||
# don't add any other because they won't be used | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up OCaml ${{ matrix.ocaml-compiler }} | ||
env: | ||
# otherwise setup-ocaml pins non-locked dependencies | ||
# https://github.com/ocaml/setup-ocaml/issues/166 | ||
OPAMLOCKED: locked | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
|
||
- name: Install dependencies | ||
run: opam install . --deps-only --locked | ||
|
||
- name: Build | ||
run: ./make.sh nat | ||
|
||
- name: Test regression | ||
run: ./make.sh headers testci | ||
|
||
- name: Test octApron regression # skipped by default but CI has apron, so explicitly test group (which ignores skipping -- it's now a feature!) | ||
run: ruby scripts/update_suite.rb group octapron -s | ||
|
||
- name: Build domaintest | ||
run: ./make.sh domaintest | ||
|
||
- name: Test domains | ||
run: ./goblint.domaintest |
This file was deleted.
Oops, something went wrong.
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,69 @@ | ||
name: unlocked | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
# nightly | ||
- cron: '31 1 * * *' # 01:31 UTC, 02:31/03:31 Munich, 03:31/04:31 Tartu | ||
# GitHub Actions load is high at minute 0, so avoid that | ||
|
||
jobs: | ||
regression: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
ocaml-compiler: | ||
- 4.12.x | ||
- 4.11.x | ||
- 4.09.x | ||
apron: | ||
- false | ||
- true | ||
|
||
# customize name to use readable string for apron instead of just a boolean | ||
# workaround for missing ternary operator: https://github.com/actions/runner/issues/409 | ||
name: regression (${{ matrix.os }}, ${{ matrix.ocaml-compiler }}${{ matrix.apron && ', apron' || '' }}) | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
|
||
- name: Install dependencies | ||
run: opam install . --deps-only | ||
|
||
- name: Install Apron dependencies | ||
if: ${{ matrix.apron }} | ||
run: | | ||
opam depext apron | ||
opam install apron | ||
- name: Build | ||
run: ./make.sh nat | ||
|
||
- name: Test regression | ||
run: ./make.sh headers testci | ||
|
||
- name: Test octApron regression # skipped by default but CI has apron, so explicitly test group (which ignores skipping -- it's now a feature!) | ||
if: ${{ matrix.apron }} | ||
run: ruby scripts/update_suite.rb group octapron -s | ||
|
||
- name: Build domaintest | ||
run: ./make.sh domaintest | ||
|
||
- name: Test domains | ||
run: ./goblint.domaintest # could be made long | ||
|
||
- name: Test marshal regression | ||
run: ruby scripts/update_suite.rb -m |
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