forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.08 KB
/
build_linux.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 Linux
on: [workflow_dispatch]
jobs:
build_linux:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
ocaml-compiler:
- ocaml-variants.4.10.3+trunk
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Use OCaml ${{ matrix.ocaml-version}}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Use npm
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install deps
run: npm install
- name: Ninja config
run: opam exec -- ./scripts/ninja.js config
- name: Ninja build
run: opam exec -- ./scripts/ninja.js build
- name: (only on release) Upload artifacts ${{ matrix.os }}
uses: actions/upload-artifact@master
with:
name: ${{ matrix.os }}
path: |
./linux/bsb_helper.exe
./linux/bsc.exe
./linux/rescript.exe
if-no-files-found: error