mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
40 lines
888 B
YAML
40 lines
888 B
YAML
name: Main workflow
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
# - macos-latest
|
|
- ubuntu-latest
|
|
# - windows-latest
|
|
ocaml-compiler:
|
|
# - "4.11.1"
|
|
# - 4.10.x
|
|
# - 4.11.x
|
|
- 4.13.1
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout tree
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
|
|
uses: ocaml/setup-ocaml@v2
|
|
with:
|
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
|
|
- run: opam pin add Lama.dev . --no-action
|
|
- run: opam depext Lama.dev --yes --with-test
|
|
- run: opam install . --deps-only --with-test
|
|
- run: eval $(opam env)
|
|
- run: opam exec -- make #dune build
|
|
- run: opam exec -- make regression # dune runtest
|