-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (30 loc) · 878 Bytes
/
build_macos.yml
File metadata and controls
38 lines (30 loc) · 878 Bytes
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
name: Build MacOS
on: [workflow_dispatch]
jobs:
build_macos:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest]
ocaml-compiler:
- 4.14.0
steps:
- uses: actions/checkout@v3
- name: Use OCaml ${{ matrix.ocaml-version}}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install deps
run: opam install . --deps-only --with-test
- name: Build
run: opam exec -- dune build
- name: Copy built PPX file
run: |
mv ./_build/default/bin/bin.exe ppx.exe
- name: (only on release) Upload artifacts ${{ matrix.os }}
uses: actions/upload-artifact@master
with:
name: ${{ matrix.os }}
path: ppx.exe
if-no-files-found: error