Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit f16b0a2

Browse files
committed
Update GitHub Actions workflow
Signed-off-by: Sora Morimoto <[email protected]>
1 parent bd15389 commit f16b0a2

File tree

1 file changed

+35
-32
lines changed

1 file changed

+35
-32
lines changed

.github/workflows/ci.yml

+35-32
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
7-
branches: [ master ]
5+
push:
6+
schedule:
7+
# Prime the caches every Monday
8+
- cron: 0 1 * * MON
89

910
jobs:
1011
test:
11-
runs-on: macos-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- macos-latest
17+
- ubuntu-latest
18+
ocaml-compiler:
19+
- ocaml-base-compiler.4.06.1
20+
include:
21+
- os: windows-latest
22+
ocaml-compiler: ocaml-variants.4.06.1+mingw64c
23+
24+
runs-on: ${{ matrix.os }}
1225

1326
steps:
14-
- uses: actions/[email protected]
15-
16-
- name: Cache OCaml's opam
17-
uses: actions/[email protected]
18-
with:
19-
path: ~/.opam
20-
key: macos-latest-ocaml-4.06.1
21-
22-
- name: Cache npm
23-
uses: actions/[email protected]
24-
with:
25-
path: ~/.npm
26-
key: macos-latest-node-14.4.0-${{hashFiles('package-lock.json')}}
27-
28-
- name: Use OCaml
29-
uses: avsm/[email protected]
30-
with:
31-
ocaml-version: 4.06.1
32-
33-
- name: Use Node.js
34-
uses: actions/[email protected]
35-
with:
36-
node-version: 14.4.0
37-
38-
- run: npm install
39-
40-
- run: opam install . --deps-only
41-
- run: eval $(opam env) && opam exec -- dune build
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
30+
- name: Use Node.js 14.x
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: 14.x
34+
35+
- run: npm ci
36+
37+
- name: Use OCaml ${{ matrix.ocaml-compiler }}
38+
uses: avsm/setup-ocaml@v2
39+
with:
40+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
41+
42+
- run: opam install . --deps-only
43+
44+
- run: opam exec -- dune build

0 commit comments

Comments
 (0)