File tree Expand file tree Collapse file tree 2 files changed +43
-12
lines changed Expand file tree Collapse file tree 2 files changed +43
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build :
10
+ name : Build on ${{ matrix.os }}
11
+ runs-on : ${{ matrix.os }}
12
+ strategy :
13
+ matrix :
14
+ node-version : [16.x]
15
+ os : [ubuntu-latest, macOS-latest, windows-latest]
16
+
17
+ steps :
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+
23
+ - name : Checkout
24
+ uses : actions/checkout@v2
25
+
26
+ - name : Get yarn cache directory path
27
+ id : yarn-cache-dir-path
28
+ run : echo "::set-output name=dir::$(yarn cache dir)"
29
+
30
+ - name : Restore yarn cache
31
+ id : yarn-cache
32
+ uses : actions/cache@v1
33
+ with :
34
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
35
+ key : ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36
+ restore-keys : |
37
+ ${{ matrix.os }}-yarn-
38
+
39
+ - name : Install deps
40
+ run : yarn install
41
+
42
+ - name : Build lib
43
+ run : yarn rescript build -with-deps
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments