From ceebfe3ae172b25f243dc40aa82d9dac45233dfa Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 21 Feb 2022 22:18:30 -0500 Subject: [PATCH] update CI with distinct jobs --- .github/workflows/compat.yml | 38 ++++++++++++++++++++++++++++++++++++ .github/workflows/main.yml | 27 ------------------------- 2 files changed, 38 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/compat.yml diff --git a/.github/workflows/compat.yml b/.github/workflows/compat.yml new file mode 100644 index 00000000..2cf68db9 --- /dev/null +++ b/.github/workflows/compat.yml @@ -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' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6884f9cb..6b2c6585 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: