Skip to content

Commit 9a302b1

Browse files
authored
Merge pull request #110 from ocaml-multicore/CI-cleanup
Windows run on GitHub Actions
2 parents 3d981ce + e03bebc commit 9a302b1

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,30 @@ on:
88
- cron: 0 1 * * MON
99

1010
jobs:
11-
build:
12-
strategy:
13-
matrix:
14-
os:
15-
- ubuntu-latest
16-
- macos-latest
17-
ocaml-compiler:
18-
- 5.0.x
19-
- ocaml-variants.5.1.0+trunk
20-
21-
runs-on: ${{ matrix.os }}
11+
windows:
12+
runs-on: windows-latest
2213

2314
env:
2415
QCHECK_MSG_INTERVAL: '60'
2516

2617
steps:
2718
- name: Checkout code
28-
uses: actions/checkout@v3
29-
30-
- name: Get latest OCaml commit hash
31-
id: multicore_hash
32-
shell: bash
33-
run: |
34-
curl -sH "Accept: application/vnd.github.v3+json" \
35-
https://api.github.com/repos/ocaml/ocaml/commits/trunk \
36-
| jq .commit.tree.sha | xargs printf '::set-output name=commit::%s'
19+
uses: actions/checkout@v2
20+
3721
- name: Use OCaml ${{ matrix.ocaml-compiler }}
3822
uses: ocaml/setup-ocaml@v2
3923
with:
40-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
24+
opam-pin: false
25+
opam-depext: false
26+
ocaml-compiler: ocaml.5.0.0,ocaml-option-mingw
4127
opam-repositories: |
42-
default: https://github.com/ocaml/opam-repository.git
43-
alpha: git+https://github.com/kit-ty-kate/opam-alpha-repository
28+
dra27: https://github.com/dra27/opam-repository.git#windows-5.0
29+
default: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
30+
upstream: https://github.com/ocaml/opam-repository.git
4431
cache-prefix: ${{ steps.multicore_hash.outputs.commit }}
45-
opam-depext: false
4632

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

49-
- run: opam exec -- make all
35+
- run: opam exec -- dune build
5036

51-
- run: opam exec -- make run_test
37+
- run: opam exec -- dune runtest

0 commit comments

Comments
 (0)