-
Notifications
You must be signed in to change notification settings - Fork 92
64 lines (52 loc) · 1.57 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
name: Build Package
on:
push:
branches: [ "master", "feature/cli-installer-v2" ] # should change once we have a stable branch
pull_request:
branches: [ "master", "feature/cli-installer-v2" ]
jobs:
call-tests:
uses: ./.github/workflows/tests.yml
build:
needs: call-tests
runs-on: ubuntu-latest # Choose an appropriate runner
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Configure NPM Token
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm install
- name: Restore Cache
uses: actions/cache@v3
with:
path: ~/.pkg-cache
key: node16-pkg-${{ github.run_id }}
restore-keys: node16-pkg-
- name: Add pre-built Node for armv7
run: |
mkdir -p ~/.pkg-cache/v3.4
cp .circleci/built-v16.16.0-linux-armv7 ~/.pkg-cache/v3.4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm,arm64
- name: Set up ldid
uses: MOZGIII/install-ldid-action@v1
with:
tag: v2.1.5-procursus7
- name: Build Package
run: npm run build
- name: Save Cache
uses: actions/cache@v3
with:
path: ~/.pkg-cache
key: node16-pkg-${{ github.run_id }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: package
path: build/