-
Notifications
You must be signed in to change notification settings - Fork 45
49 lines (38 loc) · 1.05 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
name: build
on:
workflow_dispatch:
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Nodejs
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: install yarn
run: npm i yarn -g
- name: install node pkg
run: npm i pkg -g
# - name: Setup Python 2.7
# uses: actions/setup-python@v4
# with:
# architecture: x64
# python-version: "2.7"
- name: install deps
run: yarn
- name: build project 64bit
run: npx pkg -t node18-linux-arm64 -o ./build/sugar-wifi-conf-arm64 index.js
- name: build project 32bit
run: npx pkg -t node18-linux-armv7 -o ./build/sugar-wifi-conf-armv7 index.js
# Upload artifact
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: sugar-wifi-conf
path: |
build
if-no-files-found: warn