Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions for Windows and test fewer systems #407

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 10 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,62 +13,19 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
packages: [ '.' ]
runtest:
- true
ocaml-compiler:
- 4.14.x
- 5.0.x
- 4.14
- 5.2
include:
- os: macos-latest
ocaml-compiler: 4.14.x
packages: '.'
runtest: true

- os: windows-latest
ocaml-compiler: 4.14.x
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false

- os: ubuntu-latest
ocaml-compiler: 4.08.x
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false

- os: ubuntu-latest
ocaml-compiler: 4.09.x
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false

- os: ubuntu-latest
ocaml-compiler: 4.10.x
ocaml-compiler: 4.08
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false

- os: ubuntu-latest
ocaml-compiler: 4.11.x
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false

- os: ubuntu-latest
ocaml-compiler: 4.12.x
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false

- os: ubuntu-latest
ocaml-compiler: 4.13.x
packages: 'alcotest alcotest-js alcotest-lwt alcotest-mirage'
opam-local-packages: 'alcotest.opam alcotest-js.opam alcotest-lwt.opam alcotest-mirage.opam'
runtest: false


runtest: true

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

Expand All @@ -79,12 +36,12 @@ jobs:
git config --global core.eol lf

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- name: Use latest Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: latest

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
Expand All @@ -102,6 +59,7 @@ jobs:
opam-local-packages: $${ matrix.opam-local-packages }}
opam-depext-flags: --with-test
opam-repositories: |
windows-5.0: https://github.com/dra27/opam-repository.git#windows-5.0
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
default: https://github.com/ocaml/opam-repository.git

Expand Down
Loading