-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (44 loc) · 1.53 KB
/
npm.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
48
49
50
51
name:
on:
workflow_call:
env:
SDK_JS_HOME: cohort_sdk_js
jobs:
npm:
strategy:
matrix:
settings:
- host: macos-latest
target: darwin-arm64
buildCommand: |
cd $SDK_JS_HOME && npm run build -- --target darwin-arm64
name: stable - ${{ matrix.settings.target }} - node@16
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
check-latest: true
- name: Install
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
toolchain: stable
target: ${{ matrix.settings.target }}
- name: List content before build
shell: bash
run: ls -l
# - name: Cache cargo TODO deal with caching
- name: Install node dependencies
run: cd $SDK_JS_HOME && npm install
- name: Cargo build
run: cargo build
- name: Build
shell: bash
run: ${{ matrix.settings.buildCommand }}
- name: List content after build
shell: bash
run: ls -l