Skip to content

Commit fbf0f85

Browse files
liyishuaic-cube
authored andcommitted
CI: more OS
1 parent 3b9ba33 commit fbf0f85

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,42 @@ jobs:
88
run:
99
name: build
1010
strategy:
11+
fail-fast: false
1112
matrix:
1213
os:
1314
- ubuntu-latest
15+
- macos-latest
16+
- macos-13
17+
setup-version:
18+
- v2
19+
- v3
1420
ocaml-compiler:
15-
- 4.03.x
21+
- 4.06.x
1622
- 4.14.x
1723
- 5.1.x
24+
exclude:
25+
- os: ubuntu-latest
26+
setup-version: v2
27+
- os: macos-13
28+
setup-version: v3
29+
- os: macos-latest
30+
setup-version: v2
31+
- os: macos-latest
32+
ocaml-compiler: 4.06.x
1833
runs-on: ${{ matrix.os }}
1934
steps:
20-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
2136
- uses: ocaml/setup-ocaml@v2
37+
if: matrix.setup-version == 'v2'
38+
with:
39+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
40+
allow-prerelease-opam: true
41+
- uses: ocaml/setup-ocaml@v3
42+
if: matrix.setup-version == 'v3'
2243
with:
2344
ocaml-compiler: ${{ matrix.ocaml-compiler }}
2445
allow-prerelease-opam: true
2546
- run: opam pin -n .
26-
- run: opam depext -yt linenoise
2747
- run: opam install -t . --deps-only
2848
- run: opam exec -- dune build --ignore-promoted-rules
2949
- run: opam exec -- dune runtest --ignore-promoted-rules
30-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '4.14.x' }}

linenoise.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ build: [
1515
]
1616
depends: [
1717
"dune" { >= "1.1" }
18-
"ocaml" { >= "4.03.0" }
18+
"ocaml" { >= "4.06.0" }
1919
"odoc" {with-doc}
2020
]

0 commit comments

Comments
 (0)