Skip to content

Commit

Permalink
use setup-ocaml v3 (#10655)
Browse files Browse the repository at this point in the history
* use setup-ocaml v3

Signed-off-by: Etienne Millon <[email protected]>

* check out ocamlformat with lf

Signed-off-by: Etienne Millon <[email protected]>

* unify deps

Signed-off-by: Etienne Millon <[email protected]>

---------

Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon authored Jul 3, 2024
1 parent 1e8b005 commit 237961c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dune text eol=lf
dune.inc text eol=lf
.gitignore text eol=lf
.gitattributes text eol=lf
.ocamlformat text eol=lf
17 changes: 6 additions & 11 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ jobs:
uses: actions/checkout@v4

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-depext: false

# git user needs to be configured for the following tests:
# otherlibs/build-info/test/run.t
Expand All @@ -99,15 +98,11 @@ jobs:
# Ensure Dune can build itself
- run: opam exec -- make bootstrap

- name: Install deps on Unix
- name: Install deps
run: |
opam install . --deps-only --with-test
opam exec -- make dev-deps
if: ${{ matrix.os != 'windows-latest' && matrix.skip_test == false }}

- name: Install deps on Win32
run: opam install ./dune-configurator.opam --deps-only --with-test
if: ${{ matrix.os == 'windows-latest' && matrix.skip_test == false }}
if: ${{ matrix.skip_test == false }}

- name: Run test suite on Unix
run: opam exec -- make test
Expand Down Expand Up @@ -184,7 +179,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-depext: false
Expand Down Expand Up @@ -223,7 +218,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Use OCaml 4.14.x
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.x
opam-pin: false
Expand Down Expand Up @@ -266,7 +261,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- uses: actions/checkout@v4
Expand Down

0 comments on commit 237961c

Please sign in to comment.