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

Run CI on Windows #156

Merged
merged 5 commits into from
Nov 17, 2024
Merged
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
26 changes: 12 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,39 @@ concurrency:

jobs:
build:
runs-on: ubuntu-latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you still need something like runs-on: ${{ matrix.setup.os }}

runs-on: ${{ matrix.setup.os }}
strategy:
matrix:
setup:
- {ocaml-version: '4.05', runtest: false}
- {ocaml-version: '4.09', runtest: true}
- {ocaml-version: '4.14', runtest: true}
- {ocaml-version: '5.1', runtest: true}
- {ocaml-version: '5.2', runtest: true}
- {ocaml-version: '4.05', os: ubuntu-latest, runtest: false}
- {ocaml-version: '4.09', os: ubuntu-latest, runtest: true}
- {ocaml-version: '4.14', os: ubuntu-latest, runtest: true}
- {ocaml-version: '5.1', os: ubuntu-latest, runtest: true}
- {ocaml-version: '5.2', os: ubuntu-latest, runtest: true}
- {ocaml-version: '5.2', os: windows-latest, runtest: false}
steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.setup.ocaml-version }}
- name: Setup opam
run: opam pin add -n .
- name: Install dependencies
run: opam depext -yt mad
- name: Build
if: ${{ ! matrix.setup.runtest }}
run: opam install .
- name: Build and test
- name: Build for testing
if: ${{ matrix.setup.runtest }}
run: opam install -t .
- name: Test
if: ${{ matrix.setup.runtest }}
run: |
opam install -t .
eval $(opam env)
dune build @github_action_tests
run: opam exec -- dune build @github_action_tests

nix-build:
runs-on: ${{ matrix.setup.os }}
strategy:
matrix:
setup:
- {ocamlVersion: 4_12, os: ubuntu-latest}
- {ocamlVersion: 4_13, os: ubuntu-latest}
- {ocamlVersion: 4_14, os: ubuntu-latest}
- {ocamlVersion: 5_1, os: ubuntu-latest}
- {ocamlVersion: 5_2, os: ubuntu-latest}
Expand Down