forked from kyokan/bob-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) · 1.63 KB
/
package.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
64
65
name: Package for distribution
on: workflow_dispatch
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
jobs:
package:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-18.04, macos-latest]
# OS-specific commands/variables
include:
- os: ubuntu-18.04
cmd_package: npm run package-linux
out_filename: Bob-linux
- os: windows-latest
cmd_package: npm run package-win
out_filename: Bob-windows
- os: macos-latest
cmd_package: npm run package-mac
out_filename: Bob-macos-intel
runs-on: ${{matrix.os}}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
- name: Install dependencies (linux only)
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt update && sudo apt install libudev-dev libusb-1.0-0-dev -y
- name: Install npm packages
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
retry_on: error
command: npm i
- name: Install dmg-license (macos only)
if: startsWith(matrix.os, 'macos')
run: npm i dmg-license --no-save
- name: Generate Executable
run: ${{ matrix.cmd_package }}
- name: Store artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.out_filename }}
path: |
release/*.AppImage
release/*.msi
release/*.dmg