Skip to content

Windows run on GitHub Actions #110

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

Merged
merged 1 commit into from
May 23, 2023
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
38 changes: 12 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,30 @@ on:
- cron: 0 1 * * MON

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 5.0.x
- ocaml-variants.5.1.0+trunk

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

env:
QCHECK_MSG_INTERVAL: '60'

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

- name: Get latest OCaml commit hash
id: multicore_hash
shell: bash
run: |
curl -sH "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/ocaml/ocaml/commits/trunk \
| jq .commit.tree.sha | xargs printf '::set-output name=commit::%s'
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-pin: false
opam-depext: false
ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
alpha: git+https://github.com/kit-ty-kate/opam-alpha-repository
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
upstream: https://github.com/ocaml/opam-repository.git
cache-prefix: ${{ steps.multicore_hash.outputs.commit }}
opam-depext: false

- run: opam install . --deps-only --with-test

- run: opam exec -- make all
- run: opam exec -- dune build

- run: opam exec -- make run_test
- run: opam exec -- dune runtest