From 3869ead68751fa63e3934e682f2f663e2550945d Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Wed, 8 May 2024 02:00:08 +0900 Subject: [PATCH] Update GitHub Actions Signed-off-by: Sora Morimoto --- .github/workflows/build.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7cd3c2c..b360321c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,34 +13,38 @@ jobs: fail-fast: false matrix: os: - - macos-latest - ubuntu-latest ocaml-compiler: - - 4.08.x - - 4.09.x - - 4.10.x - - 4.11.x - - 4.12.x - - 4.13.x - - 4.14.x + - "4.08" + - "4.09" + - "4.10" + - "4.11" + - "4.12" + - "4.13" + - "4.14" + include: + - os: macos-latest + ocaml-compiler: "4.14" + - os: macos-latest + ocaml-compiler: "5.1" runs-on: ${{ matrix.os }} steps: - - name: Check out code + - name: Checkout tree uses: actions/checkout@v4 - - name: Use OCaml ${{ matrix.ocaml-compiler }} + - name: Set-up OCaml uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - dune-cache: ${{ matrix.os != 'macos-latest' }} + allow-prerelease-opam: true opam-depext: false opam-pin: false - - name: Install OpenSSL on MacOS - run: brew install openssl@3 - if: ${{ matrix.os == 'macos-latest' }} + - name: Re-install OpenSSL on macOS + if: runner.os == 'macOS' + run: brew update && brew reinstall openssl@3 - run: opam install . --deps-only