-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sora Morimoto <[email protected]> Co-authored-by: Hugo Heuzard <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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: | ||
|
@@ -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 |