diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7fb78b36..41600a8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: build on: + merge_group: pull_request: push: branches: @@ -9,6 +10,10 @@ on: # Prime the caches every Monday - cron: 0 1 * * MON +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: @@ -17,6 +22,7 @@ jobs: os: - ubuntu-latest - macos-latest + - windows-latest ocaml-compiler: - 4.14.x - 5.0.x @@ -26,12 +32,6 @@ jobs: - os: ubuntu-latest ocaml-compiler: 4.8.x skip-test: true - - os: windows-latest - ocaml-compiler: 4.14.x - skip-test: false - - os: windows-latest - ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw - skip-test: false runs-on: ${{ matrix.os }} @@ -43,30 +43,13 @@ jobs: git config --global core.ignorecase false - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use OCaml ${{ matrix.ocaml-compiler }} - if: runner.os == 'Windows' - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - opam-repositories: | - dra27: https://github.com/dra27/opam-repository.git#windows-5.0 - default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset - opam: https://github.com/ocaml/opam-repository.git dune-cache: ${{ matrix.os == 'ubuntu-latest' }} - opam-depext: ${{ !matrix.skip-test }} - opam-depext-flags: --with-test - - - name: Use OCaml ${{ matrix.ocaml-compiler }} - if: runner.os != 'Windows' - uses: ocaml/setup-ocaml@v2 - with: - ocaml-compiler: ${{ matrix.ocaml-compiler }} - dune-cache: ${{ matrix.os == 'ubuntu-latest' }} - opam-depext: ${{ !matrix.skip-test }} - opam-depext-flags: --with-test - - run: opam install . --with-test if: ${{ !matrix.skip-test }} @@ -85,13 +68,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use OCaml 4.14.x - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: 4.14.x dune-cache: true - name: Lint fmt - uses: ocaml/setup-ocaml/lint-fmt@v2 + uses: ocaml/setup-ocaml/lint-fmt@v3 diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 3070d192..1e794bbd 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Setup OCaml - uses: ocaml/setup-ocaml@v2 + uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: 4.14.x - name: Pin locally