mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
50 lines
1 KiB
YAML
50 lines
1 KiB
YAML
name: Main workflow
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- "1.30"
|
|
- "1.40" # for future
|
|
- "1.50"
|
|
- "more-dune"
|
|
|
|
permissions: read-all
|
|
env:
|
|
OPAMCONFIRMLEVEL: unsafe-yes
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
ocaml-compiler:
|
|
- 4.14.2
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout tree
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
|
|
uses: ocaml/setup-ocaml@v3
|
|
with:
|
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
|
|
- run: gcc --version
|
|
|
|
- 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: rm -fr runtime32
|
|
if: ${{ matrix.os == 'macos-latest' }}
|
|
|
|
- run: opam exec -- dune test stdlib/regression -j1
|
|
- run: opam exec -- make install
|
|
- run: opam exec -- make regression
|