Skip to content

Commit

Permalink
Fix Windows CI
Browse files Browse the repository at this point in the history
Error was:

    line 1: $'\r': command not found

See: ocaml/setup-ocaml#815 (comment)
  • Loading branch information
talex5 committed Sep 26, 2024
1 parent 1614374 commit 20a18fb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ jobs:
uses: actions/checkout@v3

- name: Use OCaml ${{ matrix.ocaml-compiler }}
if: runner.os == 'Windows'
uses: ocaml/setup-ocaml@v3
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@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 20a18fb

Please sign in to comment.