mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-05 19:00:31 -05:00
update CI with distinct jobs
This commit is contained in:
parent
558c069b7b
commit
ceebfe3ae1
2 changed files with 38 additions and 27 deletions
38
.github/workflows/compat.yml
vendored
Normal file
38
.github/workflows/compat.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
name: Build compatibility test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Build compatibility test
|
||||
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'
|
||||
27
.github/workflows/main.yml
vendored
27
.github/workflows/main.yml
vendored
|
|
@ -11,33 +11,6 @@ on:
|
|||
jobs:
|
||||
run:
|
||||
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:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue