| 1 |
name: build |
| 2 |
on: |
| 3 |
- push |
| 4 |
- pull_request |
| 5 |
jobs: |
| 6 |
run: |
| 7 |
name: Build |
| 8 |
strategy: |
| 9 |
matrix: |
| 10 |
os: |
| 11 |
- macos-latest |
| 12 |
- ubuntu-latest |
| 13 |
# - windows-latest |
| 14 |
ocaml-compiler: |
| 15 |
- "4.14" |
| 16 |
- "5.2" |
| 17 |
include: |
| 18 |
- os: ubuntu-24.04-arm |
| 19 |
ocaml-compiler: "ocaml-variants.5.2.1+options,ocaml-option-tsan" |
| 20 |
runs-on: ${{ matrix.os }} |
| 21 |
steps: |
| 22 |
- uses: actions/checkout@v5 |
| 23 |
- run: | |
| 24 |
sudo apt update |
| 25 |
sudo apt install libunwind-dev |
| 26 |
if: ${{ matrix.os == 'ubuntu-24.04-arm' }} |
| 27 |
- uses: ocaml/setup-ocaml@v3 |
| 28 |
with: |
| 29 |
ocaml-compiler: ${{ matrix.ocaml-compiler }} |
| 30 |
- run: opam install . --deps-only --with-test |
| 31 |
- run: opam exec -- dune build |
| 32 |
- run: opam exec -- dune runtest |