Skip to content

Commit

Permalink
Merge pull request #277 from talex5/update-ci
Browse files Browse the repository at this point in the history
Update GH actions to OCaml 5
  • Loading branch information
talex5 authored Sep 27, 2024
2 parents ee0686b + 37e3d90 commit 54b0506
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- macos-latest
- windows-latest
ocaml-compiler:
- 4.14.x
- 5

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

Expand All @@ -25,17 +25,7 @@ jobs:
uses: actions/checkout@v3

- name: Use OCaml ${{ matrix.ocaml-compiler }}
if: runner.os == 'Windows'
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
default: https://github.com/ocaml/opam-repository.git
- name: Use OCaml ${{ matrix.ocaml-compiler }}
if: runner.os != 'Windows'
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

Expand All @@ -44,6 +34,7 @@ jobs:
shell: bash
env:
CAPNP_VERSION: 1.0.1
SHELLOPTS: igncr
run: |
curl -LO https://capnproto.org/capnproto-c++-win32-$CAPNP_VERSION.zip && \
unzip -j capnproto-c++-win32-$CAPNP_VERSION.zip capnproto-tools-win32-$CAPNP_VERSION/capnp.exe -d /usr/bin
Expand Down

0 comments on commit 54b0506

Please sign in to comment.