Skip to content

Commit 2903e49

Browse files
smorimotopanglesd
andauthored
Update setup-ocaml to v3, add disabled Windows CI (#1153)
* Update ocaml/setup-ocaml to v3 Signed-off-by: Sora Morimoto <sora@morimoto.io> * CI: disable windows build Until we have a plan to fix the tests on windows, there is no point in running the tests on Windows just to ignore them. --------- Signed-off-by: Sora Morimoto <sora@morimoto.io> Co-authored-by: Paul-Elliot <peada@free.fr>
1 parent 19b91e7 commit 2903e49

File tree

3 files changed

+42
-28
lines changed

3 files changed

+42
-28
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
labels:
8+
- no changelog

.github/workflows/build.yml

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,67 @@
1-
name: "Build"
1+
name: Build
22

33
on:
44
- push
55
- pull_request
66

77
jobs:
8-
build: # Check build on various OSes
9-
8+
build:
109
strategy:
10+
fail-fast: false
1111
matrix:
1212
os:
1313
- ubuntu-latest
1414
ocaml-compiler:
15-
- 4.02.x
16-
- 4.04.x
17-
- 4.06.x
18-
- 4.08.x
19-
- 4.10.x
20-
- 4.12.x
21-
- 4.14.x
22-
- 5.0.x
23-
- 5.1.x
15+
- "4.02"
16+
- "4.04"
17+
- "4.06"
18+
- "4.08"
19+
- "4.10"
20+
- "4.12"
21+
- "4.14"
22+
- "5.0"
23+
- "5.2"
2424
include:
2525
- os: ubuntu-latest
26-
ocaml-compiler: 5.1.x
26+
ocaml-compiler: "5.2"
2727
# We don't need to compute coverage for more than one build
2828
send-coverage: true
2929
# Mdx tests Mdx tests
3030
run-mdx: true
31-
fail-fast: false
31+
- os: macos-latest
32+
ocaml-compiler: "5.2"
33+
# - os: windows-latest
34+
# ocaml-compiler: "5.2"
3235

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

3538
steps:
36-
# Clone the project
37-
- uses: actions/checkout@v2
39+
- name: Set git to use LF
40+
if: runner.os == 'Windows'
41+
run: |
42+
git config --global core.autocrlf false
43+
git config --global core.eol lf
3844
39-
# Setup
40-
- name: Setup OCaml ${{ matrix.ocaml-version }}
41-
uses: ocaml/setup-ocaml@v2
45+
- name: Checkout tree
46+
uses: actions/checkout@v4
47+
48+
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
49+
uses: ocaml/setup-ocaml@v3
4250
with:
43-
# Do not pin odoc to not break Mdx installation
44-
opam-pin: false
4551
ocaml-compiler: ${{ matrix.ocaml-compiler }}
46-
opam-local-packages: |
47-
odoc.opam
52+
# Do not pin odoc to not break Mdx installation
53+
opam-pin: ${{ matrix.run-mdx != true }}
4854

4955
- name: Install dependencies
50-
run: opam install -y --deps-only -t ./odoc.opam ./odoc-parser.opam
56+
run: opam install --deps-only --with-test ./odoc.opam ./odoc-parser.opam
5157

5258
- name: dune runtest
5359
run: opam exec -- dune runtest
5460

5561
- name: Mdx tests
5662
if: matrix.run-mdx == true
5763
run: |
58-
opam install -y mdx
64+
opam install mdx
5965
opam exec -- dune build @runmdx
6066
6167
- name: Send coverage stats to Coveralls
@@ -67,5 +73,5 @@ jobs:
6773
opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/coverage
6874
env:
6975
BISECT_FILE: /tmp/coverage/bisect
70-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
COVERALLS_REPO_TOKEN: ${{ github.token }}
7177
PULL_REQUEST_NUMBER: ${{ github.event.number }}

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
jobs:
88
Check-Changelog:
99
name: Check Changelog Action
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
steps:
12-
- uses: tarides/changelog-check-action@v2
12+
- uses: tarides/changelog-check-action@v3
1313
with:
1414
changelog: CHANGES.md

0 commit comments

Comments
 (0)