-
Notifications
You must be signed in to change notification settings - Fork 179
47 lines (38 loc) · 1.12 KB
/
build-others.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
name: Build on other platforms
# Build and run tests on platforms others than Linux, doing less tests and
# running asynchronously from other jobs.
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-others:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
ocaml-compiler:
# Don't include every versions. OCaml-CI already covers that
- 4.14.x
runs-on: ${{ matrix.os }}
steps:
# Clone the project
- uses: actions/checkout@v2
# Setup
- name: Setup OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
default: https://github.com/ocaml/opam-repository.git
- name: Opam dependencies
run: opam install --deps-only -t .
- name: Format
run: opam exec -- dune fmt
- name: Runtest
run: opam exec -- dune runtest