From fbf0f85f8e3c7abf14ecb561edc70972bd632a44 Mon Sep 17 00:00:00 2001 From: Yishuai Li Date: Mon, 29 Jul 2024 14:02:18 +0800 Subject: [PATCH] CI: more OS --- .github/workflows/main.yml | 27 +++++++++++++++++++++++---- linenoise.opam | 2 +- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8bdef9f..a051e36 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,23 +8,42 @@ jobs: run: name: build strategy: + fail-fast: false matrix: os: - ubuntu-latest + - macos-latest + - macos-13 + setup-version: + - v2 + - v3 ocaml-compiler: - - 4.03.x + - 4.06.x - 4.14.x - 5.1.x + exclude: + - os: ubuntu-latest + setup-version: v2 + - os: macos-13 + setup-version: v3 + - os: macos-latest + setup-version: v2 + - os: macos-latest + ocaml-compiler: 4.06.x runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ocaml/setup-ocaml@v2 + if: matrix.setup-version == 'v2' + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + allow-prerelease-opam: true + - uses: ocaml/setup-ocaml@v3 + if: matrix.setup-version == 'v3' with: ocaml-compiler: ${{ matrix.ocaml-compiler }} allow-prerelease-opam: true - run: opam pin -n . - - run: opam depext -yt linenoise - run: opam install -t . --deps-only - run: opam exec -- dune build --ignore-promoted-rules - run: opam exec -- dune runtest --ignore-promoted-rules - if: ${{ matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '4.14.x' }} diff --git a/linenoise.opam b/linenoise.opam index 77595cc..b192dd0 100644 --- a/linenoise.opam +++ b/linenoise.opam @@ -15,6 +15,6 @@ build: [ ] depends: [ "dune" { >= "1.1" } - "ocaml" { >= "4.03.0" } + "ocaml" { >= "4.06.0" } "odoc" {with-doc} ]