From c32529fd5aec0b9e911b0d354c384b586755445d Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 21 Feb 2022 21:20:30 -0500 Subject: [PATCH] ci: run a simple build matrix first --- .github/workflows/main.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b256ded..6884f9cb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,33 @@ 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: @@ -20,7 +47,6 @@ jobs: - windows-latest ocaml-compiler: - '4.03.x' - - '4.08.x' - '4.13.x' runs-on: ${{ matrix.os }}