diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index d7b2825a4..9ee7812d6 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -36,19 +36,15 @@ jobs: run: nix-build ./nix/ci.nix --argstr ocamlVersion ${{ matrix.ocaml-version }} macos-tests: - name: Build and test (${{ matrix.os }}) (${{ matrix.ocaml-version }}) + name: Build and test (${{ matrix.setup.os }}) (${{ matrix.setup.ocaml-version }}) strategy: matrix: - os: - - macos-13 - - macos-14 - ocaml-version: - - 4_14 - - 5_0 - - 5_2 - - runs-on: ${{ matrix.os }} + setup: + - {ocaml-version: '5_2', os: macos-13} + - {ocaml-version: '4_14', os: macos-14} + - {ocaml-version: '5_2', os: macos-14} + runs-on: ${{ matrix.setup.os }} steps: - uses: actions/checkout@v4 with: @@ -59,5 +55,5 @@ jobs: extra-substituters = https://anmonteiro.nix-cache.workers.dev extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY= - name: "Run nix-build" - run: nix-build ./nix/ci.nix --argstr ocamlVersion ${{ matrix.ocaml-version }} + run: nix-build ./nix/ci.nix --argstr ocamlVersion ${{ matrix.setup.ocaml-version }}