mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
ci: run a simple build matrix first
This commit is contained in:
parent
59407b0f5e
commit
c32529fd5a
1 changed files with 27 additions and 1 deletions
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
|
|
@ -11,6 +11,33 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
name: Build
|
name: Build
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
ocaml-compiler:
|
||||||
|
- '4.03.x'
|
||||||
|
- '4.06.x'
|
||||||
|
- '4.07.x'
|
||||||
|
- '4.08.x'
|
||||||
|
- '4.13.x'
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use OCaml ${{ matrix.ocaml-compiler }}
|
||||||
|
uses: ocaml/setup-ocaml@v2
|
||||||
|
with:
|
||||||
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
||||||
|
|
||||||
|
- run: opam pin -n .
|
||||||
|
- run: opam depext -y containers containers-data containers-thread
|
||||||
|
- run: opam install containers containers-data containers-thread --deps-only
|
||||||
|
- run: opam exec -- dune build '@install'
|
||||||
|
|
||||||
|
run:
|
||||||
|
name: Build and test
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -20,7 +47,6 @@ jobs:
|
||||||
- windows-latest
|
- windows-latest
|
||||||
ocaml-compiler:
|
ocaml-compiler:
|
||||||
- '4.03.x'
|
- '4.03.x'
|
||||||
- '4.08.x'
|
|
||||||
- '4.13.x'
|
- '4.13.x'
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue