Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
Co-authored-by: Hugo Heuzard <[email protected]>
  • Loading branch information
smorimoto and hhugo committed Jun 20, 2024
1 parent 9faf228 commit 978b473
Showing 1 changed file with 11 additions and 29 deletions.
40 changes: 11 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,51 +58,33 @@ jobs:
skip-test: false
skip-doc: true
- os: windows-latest
ocaml-compiler: ocaml.5.2.0,ocaml-option-mingw
ocaml-compiler: "5.2"
skip-effects: false
skip-test: false
skip-doc: true

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

steps:
- name: Set git to use LF
if: runner.ocaml-compiler < 5.2
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.ignorecase false
- name: Checkout tree
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set-up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
if: runner.os == 'Windows'
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
opam: https://github.com/ocaml/opam-repository.git
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test

- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
if: runner.os != 'Windows'
uses: ocaml/setup-ocaml@v2
uses: ocaml/[email protected]
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
dune-cache: true
opam-depext: ${{ !matrix.skip-test }}
opam-depext-flags: --with-test
opam-repositories: |
hhugo: git+https://github.com/hhugo/opam-repository.git#gmp-mingw
default: git+https://github.com/ocaml/opam-repository.git
- run: opam install . --best-effort
if: ${{ matrix.skip-test }}
Expand Down Expand Up @@ -144,13 +126,13 @@ jobs:
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3.0.0-alpha
with:
ocaml-compiler: "5.2"
allow-prerelease-opam: true
dune-cache: true

- uses: ocaml/setup-ocaml/lint-opam@v2
- uses: ocaml/setup-ocaml/lint-opam@v3.0.0-alpha
continue-on-error: true

lint-fmt:
Expand All @@ -160,10 +142,10 @@ jobs:
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3.0.0-alpha
with:
ocaml-compiler: "5.2"
allow-prerelease-opam: true
dune-cache: true

- uses: ocaml/setup-ocaml/lint-fmt@v2
- uses: ocaml/setup-ocaml/lint-fmt@v3.0.0-alpha

0 comments on commit 978b473

Please sign in to comment.