Skip to content

Commit

Permalink
Update GitHub Actions script (#141)
Browse files Browse the repository at this point in the history
- Add OCaml 4.14.
- Add OCaml 5.1.
- Update to actions/checkout@v4.
- Use opam-repository-mingw#sunset and opam-repository on Windows.
  • Loading branch information
MisterDA authored Dec 18, 2023
1 parent 547666b commit 5f3731e
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,35 @@ jobs:
os:
- ubuntu-latest
ocaml:
- 4.13.1
- 4.03.0
- 5.1.x
- 4.14.x
- 4.03.x
include:
- os: macos-latest
ocaml: 4.13.1
ocaml: 4.14.x
- os: windows-latest
ocaml: 4.13.1
ocaml: 4.14.x
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: ocaml/setup-ocaml@v2
if: runner.os != 'Windows'
with:
ocaml-compiler: ${{ matrix.ocaml }}

- uses: ocaml/setup-ocaml@v2
if: runner.os == 'Windows'
with:
ocaml-compiler: ${{ matrix.ocaml }}
opam-repositories: |
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
default: https://github.com/ocaml/opam-repository.git
- run: opam depext -y conf-pkg-config
- run: opam install -y --deps-only .
- run: opam exec -- dune build -p luv
Expand All @@ -40,7 +52,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- run: npm install esy
Expand Down

0 comments on commit 5f3731e

Please sign in to comment.