this repo has no description

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>

authored by

Sora Morimoto
Paul-Elliot
and committed by
GitHub
2903e491 19b91e7f

+42 -28
+8
.github/dependabot.yml
···
··· 1 + version: 2 2 + updates: 3 + - package-ecosystem: github-actions 4 + directory: / 5 + schedule: 6 + interval: weekly 7 + labels: 8 + - no changelog
+32 -26
.github/workflows/build.yml
··· 1 - name: "Build" 2 3 on: 4 - push 5 - pull_request 6 7 jobs: 8 - build: # Check build on various OSes 9 - 10 strategy: 11 matrix: 12 os: 13 - ubuntu-latest 14 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 24 include: 25 - os: ubuntu-latest 26 - ocaml-compiler: 5.1.x 27 # We don't need to compute coverage for more than one build 28 send-coverage: true 29 # Mdx tests Mdx tests 30 run-mdx: true 31 - fail-fast: false 32 33 runs-on: ${{ matrix.os }} 34 35 steps: 36 - # Clone the project 37 - - uses: actions/checkout@v2 38 39 - # Setup 40 - - name: Setup OCaml ${{ matrix.ocaml-version }} 41 - uses: ocaml/setup-ocaml@v2 42 with: 43 # Do not pin odoc to not break Mdx installation 44 - opam-pin: false 45 - ocaml-compiler: ${{ matrix.ocaml-compiler }} 46 - opam-local-packages: | 47 - odoc.opam 48 49 - name: Install dependencies 50 - run: opam install -y --deps-only -t ./odoc.opam ./odoc-parser.opam 51 52 - name: dune runtest 53 run: opam exec -- dune runtest ··· 55 - name: Mdx tests 56 if: matrix.run-mdx == true 57 run: | 58 - opam install -y mdx 59 opam exec -- dune build @runmdx 60 61 - name: Send coverage stats to Coveralls ··· 67 opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/coverage 68 env: 69 BISECT_FILE: /tmp/coverage/bisect 70 - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} 71 PULL_REQUEST_NUMBER: ${{ github.event.number }}
··· 1 + name: Build 2 3 on: 4 - push 5 - pull_request 6 7 jobs: 8 + build: 9 strategy: 10 + fail-fast: false 11 matrix: 12 os: 13 - ubuntu-latest 14 ocaml-compiler: 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" 24 include: 25 - os: ubuntu-latest 26 + ocaml-compiler: "5.2" 27 # We don't need to compute coverage for more than one build 28 send-coverage: true 29 # Mdx tests Mdx tests 30 run-mdx: true 31 + - os: macos-latest 32 + ocaml-compiler: "5.2" 33 + # - os: windows-latest 34 + # ocaml-compiler: "5.2" 35 36 runs-on: ${{ matrix.os }} 37 38 steps: 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 44 + 45 + - name: Checkout tree 46 + uses: actions/checkout@v4 47 48 + - name: Set-up OCaml ${{ matrix.ocaml-compiler }} 49 + uses: ocaml/setup-ocaml@v3 50 with: 51 + ocaml-compiler: ${{ matrix.ocaml-compiler }} 52 # Do not pin odoc to not break Mdx installation 53 + opam-pin: ${{ matrix.run-mdx != true }} 54 55 - name: Install dependencies 56 + run: opam install --deps-only --with-test ./odoc.opam ./odoc-parser.opam 57 58 - name: dune runtest 59 run: opam exec -- dune runtest ··· 61 - name: Mdx tests 62 if: matrix.run-mdx == true 63 run: | 64 + opam install mdx 65 opam exec -- dune build @runmdx 66 67 - name: Send coverage stats to Coveralls ··· 73 opam exec -- bisect-ppx-report send-to Coveralls --coverage-path /tmp/coverage 74 env: 75 BISECT_FILE: /tmp/coverage/bisect 76 + COVERALLS_REPO_TOKEN: ${{ github.token }} 77 PULL_REQUEST_NUMBER: ${{ github.event.number }}
+2 -2
.github/workflows/changelog.yml
··· 7 jobs: 8 Check-Changelog: 9 name: Check Changelog Action 10 - runs-on: ubuntu-20.04 11 steps: 12 - - uses: tarides/changelog-check-action@v2 13 with: 14 changelog: CHANGES.md
··· 7 jobs: 8 Check-Changelog: 9 name: Check Changelog Action 10 + runs-on: ubuntu-latest 11 steps: 12 + - uses: tarides/changelog-check-action@v3 13 with: 14 changelog: CHANGES.md