Skip to content

Commit bc15dab

Browse files
author
Hugo Heuzard
committed
Switch to opam 2.2
1 parent 5f8e5e2 commit bc15dab

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.github/workflows/build.yml

+8-29
Original file line numberDiff line numberDiff line change
@@ -19,45 +19,25 @@ jobs:
1919
- windows-latest
2020
- macos-latest
2121
ocaml-compiler:
22-
- 4.14.x
23-
include:
24-
- os: ubuntu-latest
25-
ocaml-compiler: 5.1.x
26-
- os: macos-latest
27-
ocaml-compiler: 5.1.x
28-
- os: windows-latest
29-
ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw
22+
- "4.14"
23+
- "5.2"
3024

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

3327
steps:
3428
- name: Checkout code
35-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3630

37-
- name: Use OCaml ${{ matrix.ocaml-compiler }}
38-
uses: ocaml/setup-ocaml@v2
39-
if: runner.os != 'Windows'
31+
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
32+
uses: ocaml/setup-ocaml@v3.0.0-beta
4033
with:
4134
ocaml-compiler: ${{ matrix.ocaml-compiler }}
42-
dune-cache: true
43-
opam-depext: true
44-
opam-depext-flags: --with-test
35+
allow-prerelease-opam: true
4536

46-
- name: Use OCaml ${{ matrix.ocaml-compiler }}
47-
uses: ocaml/setup-ocaml@v2
48-
if: runner.os == 'Windows'
49-
with:
50-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
51-
opam-repositories: |
52-
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
53-
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
54-
opam: https://github.com/ocaml/opam-repository.git
55-
dune-cache: true
56-
opam-depext: true
57-
opam-depext-flags: --with-test
37+
- run: opam install -v . --with-test --deps-only
5838

5939
- name: configure tree
60-
run: opam exec -- ./configure
40+
run: opam exec -- sh ./configure
6141

6242
- name: Build
6343
run: opam exec -- make
@@ -68,4 +48,3 @@ jobs:
6848
- run: opam install . --with-test
6949

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

0 commit comments

Comments
 (0)