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 committed Jun 15, 2024
1 parent 5f8e5e2 commit 99c5d2e
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,15 @@ jobs:
- 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
- 5.2.x

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

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
- name : Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
if: runner.os != 'Windows'
with:
Expand All @@ -43,18 +37,12 @@ jobs:
opam-depext: true
opam-depext-flags: --with-test

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
if: runner.os == 'Windows'
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: kit-ty-kate/setup-ocaml@win52
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
allow-prerelease-opam: true

- name: configure tree
run: opam exec -- ./configure
Expand All @@ -68,4 +56,3 @@ jobs:
- run: opam install . --with-test

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

0 comments on commit 99c5d2e

Please sign in to comment.