Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 364c239

Browse files
committed
Use matrix, not env for compiler version
1 parent a9a1512 commit 364c239

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ on:
66
pull_request:
77
branches: [ master ]
88

9-
env:
10-
OCAML_VERSION: 4.14.0
11-
129
jobs:
1310
test:
1411
strategy:
1512
fail-fast: false
1613
matrix:
1714
os: [macos-latest, ubuntu-latest, windows-latest, macos-arm]
15+
ocaml_compiler: [4.14.0]
1816

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

@@ -27,19 +25,19 @@ jobs:
2725
2826
- uses: actions/checkout@v3
2927

30-
- name: Use OCaml ${{env.OCAML_VERSION}}
28+
- name: Use OCaml ${{matrix.ocaml_compiler}}
3129
if: runner.name != 'macos-arm'
3230
uses: ocaml/setup-ocaml@v2
3331
with:
34-
ocaml-compiler: ${{env.OCAML_VERSION}}
32+
ocaml-compiler: ${{matrix.ocaml_compiler}}
3533
opam-pin: false
3634
opam-depext: false
3735

38-
- name: Use OCaml ${{env.OCAML_VERSION}}
36+
- name: Use OCaml ${{matrix.ocaml_compiler}}
3937
if: runner.name == 'macos-arm'
4038
uses: AbstractMachinesLab/setup-ocaml@arm-support
4139
with:
42-
ocaml-compiler: ${{env.OCAML_VERSION}}
40+
ocaml-compiler: ${{matrix.ocaml_compiler}}
4341
opam-pin: false
4442
opam-depext: false
4543

0 commit comments

Comments
 (0)