Skip to content

Commit c24f57f

Browse files
liyishuaipmetzger
authored andcommitted
CI: macOS both x86 and arm
1 parent fff4390 commit c24f57f

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os:
15+
- macos-13
1516
- macos-latest
1617
- ubuntu-latest
1718
- windows-latest
@@ -20,17 +21,52 @@ jobs:
2021
- 4.10.x
2122
- 4.12.x
2223
- 4.14.x
24+
- 5.02.x
25+
setup-version:
26+
- v2
27+
- v3
28+
exclude:
29+
- os: ubuntu-latest
30+
setup-version: v2
31+
- os: macos-13
32+
setup-version: v3
33+
- os: macos-latest
34+
setup-version: v2
35+
- os: macos-latest
36+
ocaml-compiler: 4.08.x
37+
- os: windows-latest
38+
setup-version: v3
39+
ocaml-compiler: 4.08.x
40+
- os: windows-latest
41+
setup-version: v3
42+
ocaml-compiler: 4.10.x
43+
- os: windows-latest
44+
setup-version: v3
45+
ocaml-compiler: 4.12.x
46+
- os: windows-latest
47+
setup-version: v3
48+
ocaml-compiler: 4.14.x
49+
- os: windows-latest
50+
setup-version: v2
51+
ocaml-compiler: 5.02.x
2352

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

2655
steps:
2756
- name: Checkout code
28-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
2958

30-
- name: Use OCaml ${{ matrix.ocaml-compiler }}
59+
- name: Use OCaml ${{ matrix.ocaml-compiler }} with v2
60+
if: ${{ matrix.setup-version == 'v2' }}
3161
uses: ocaml/setup-ocaml@v2
3262
with:
3363
ocaml-compiler: ${{ matrix.ocaml-compiler }}
64+
65+
- name: Use OCaml ${{ matrix.ocaml-compiler }} with v3
66+
if: ${{ matrix.setup-version == 'v3' }}
67+
uses: ocaml/setup-ocaml@v3
68+
with:
69+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
3470

3571
- run: opam install . --deps-only --with-test
3672

0 commit comments

Comments
 (0)