-
Notifications
You must be signed in to change notification settings - Fork 70
70 lines (55 loc) · 1.71 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: build
on:
pull_request:
push:
branches:
- master
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
ocaml-compiler:
- "4.14"
- "5.2"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/[email protected]
with:
opam-repositories: |
default: https://github.com/hhugo/opam-repository.git#gmp-mingw
ocaml-compiler: ${{ matrix.ocaml-compiler }}
cache-prefix: "z1"
allow-prerelease-opam: true
- name: wintest
run: |
bash -c "ls C:/hostedtoolcache/windows/cygwin/3.5.3/x86_64/setup-x86_64.exe"
bash -c "mkdir -p D:/.opam/.cygwin"
bash -c "cp C:/hostedtoolcache/windows/cygwin/3.5.3/x86_64/setup-x86_64.exe D:/.opam/.cygwin/"
bash -c "ls D:/.opam/"
bash -c "ls D:/.opam/.cygwin"
bash -c "ls D:/cygwin/var/log"
bash -c "rm -rf D:/cygwin/var/log"
if: runner.os == 'Windows'
- run: opam install -v . --with-test --deps-only
- name: configure tree
run: opam exec -- sh ./configure
- name: Build
run: opam exec -- make
- name: Run the testsuite
run: opam exec -- make -C tests test
- run: opam install . --with-test
- run: opam exec -- git diff --exit-code