Skip to content

Commit

Permalink
CI: more OS
Browse files Browse the repository at this point in the history
  • Loading branch information
liyishuai authored and c-cube committed Jul 29, 2024
1 parent 3b9ba33 commit fbf0f85
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,42 @@ jobs:
run:
name: build
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-13
setup-version:
- v2
- v3
ocaml-compiler:
- 4.03.x
- 4.06.x
- 4.14.x
- 5.1.x
exclude:
- os: ubuntu-latest
setup-version: v2
- os: macos-13
setup-version: v3
- os: macos-latest
setup-version: v2
- os: macos-latest
ocaml-compiler: 4.06.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v2
if: matrix.setup-version == 'v2'
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
- uses: ocaml/setup-ocaml@v3
if: matrix.setup-version == 'v3'
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
- run: opam pin -n .
- run: opam depext -yt linenoise
- run: opam install -t . --deps-only
- run: opam exec -- dune build --ignore-promoted-rules
- run: opam exec -- dune runtest --ignore-promoted-rules
if: ${{ matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '4.14.x' }}
2 changes: 1 addition & 1 deletion linenoise.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ build: [
]
depends: [
"dune" { >= "1.1" }
"ocaml" { >= "4.03.0" }
"ocaml" { >= "4.06.0" }
"odoc" {with-doc}
]

0 comments on commit fbf0f85

Please sign in to comment.