Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 12 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,30 @@ on:
- cron: 0 1 * * MON

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 5.0.x
- ocaml-variants.5.1.0+trunk

runs-on: ${{ matrix.os }}
windows:
runs-on: windows-latest

env:
QCHECK_MSG_INTERVAL: '60'

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Get latest OCaml commit hash
id: multicore_hash
shell: bash
run: |
curl -sH "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/ocaml/ocaml/commits/trunk \
| jq .commit.tree.sha | xargs printf '::set-output name=commit::%s'
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-pin: false
opam-depext: false
ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
alpha: git+https://github.com/kit-ty-kate/opam-alpha-repository
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
upstream: https://github.com/ocaml/opam-repository.git
cache-prefix: ${{ steps.multicore_hash.outputs.commit }}
opam-depext: false

- run: opam install . --deps-only --with-test

- run: opam exec -- make all
- run: opam exec -- dune build

- run: opam exec -- make run_test
- run: opam exec -- dune runtest