Skip to content

Commit

Permalink
Switch to opam 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Heuzard authored and hhugo committed Jun 22, 2024
1 parent 5f8e5e2 commit 88d8261
Showing 1 changed file with 14 additions and 29 deletions.
43 changes: 14 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
# Prime the caches every Monday
- cron: 0 1 * * MON

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand All @@ -19,45 +23,27 @@ jobs:
- windows-latest
- macos-latest
ocaml-compiler:
- 4.14.x
include:
- os: ubuntu-latest
ocaml-compiler: 5.1.x
- os: macos-latest
ocaml-compiler: 5.1.x
- os: windows-latest
ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw
- "4.14"
- "5.2"

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
if: runner.os != 'Windows'
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/[email protected]
with:
opam-repositories: |
default: https://github.com/hhugo/opam-repository.git#gmp-mingw
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
opam-depext: true
opam-depext-flags: --with-test
allow-prerelease-opam: true

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
if: runner.os == 'Windows'
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: true
opam-depext: true
opam-depext-flags: --with-test
- run: opam install -v . --with-test --deps-only

- name: configure tree
run: opam exec -- ./configure
run: opam exec -- sh ./configure

- name: Build
run: opam exec -- make
Expand All @@ -68,4 +54,3 @@ jobs:
- run: opam install . --with-test

- run: opam exec -- git diff --exit-code
if: ${{ !matrix.skip-test }}

0 comments on commit 88d8261

Please sign in to comment.