Skip to content

Commit

Permalink
Add OCaml 5.1 to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Apr 15, 2024
1 parent 73f1a0f commit 2fcfeaa
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ on:
- cron: 0 1 * * MON

jobs:
build:
core:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.08.x
- 4.09.x
- 4.10.x
- 4.11.x
- 4.12.x
- 4.13.x
- 4.14.x
- 5.0.x
- "4.08"
- "4.09"
- "4.10"
- "4.11"
- "4.12"
- "4.13"
- "4.14"
- "5.0"
- "5.1"
libev:
- true
- false
Expand All @@ -33,7 +34,7 @@ jobs:
*.opam
include:
- os: ubuntu-latest
ocaml-compiler: ocaml-variants.4.14.0+options,ocaml-option-flambda,ocaml-option-musl,ocaml-option-static
ocaml-compiler: ocaml-variants.5.1.1+options,ocaml-option-flambda,ocaml-option-musl,ocaml-option-static
libev: false
ppx: true
local-packages: |
Expand Down Expand Up @@ -75,20 +76,19 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Hack Git CRLF for ocaml/setup-ocaml#529 issue
run: git config --global core.autocrlf input

- name: Checkout code
uses: actions/checkout@v4

- name: Hack Git CRLF for ocaml/setup-ocaml issue #529
if: ${{ startsWith(matrix.os, 'windows-') }}
run: |
& "C:\Program Files\Git\bin\git.exe" config --system core.autocrlf input
- name: Use OCaml ${{ matrix.ocaml-compiler }}
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-depext-flags: --with-test
opam-local-packages: ${{ matrix.local-packages }}
allow-prerelease-opam: true

- run: opam depext conf-libev --install
if: ${{ matrix.libev == true }}
Expand Down

0 comments on commit 2fcfeaa

Please sign in to comment.