-
-
Notifications
You must be signed in to change notification settings - Fork 715
47 lines (47 loc) · 1.47 KB
/
build-packages.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
name: Build Package
on: [workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
cmd: npm run buildDebian
artifact: linux-deb-package
path: dist/app/*.deb
- os: ubuntu-latest
cmd: npm run buildRedhat
artifact: linux-rpm-package
path: dist/app/*.rpm
- os: windows-latest
cmd: npm run buildWindows
artifact: windows-package
path: dist/app/*.zip
- os: macos-13
env:
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
cmd: npm run buildMacIntel
artifact: darwin-x86-package
path: dist/app/*.zip
- os: macos-13
env:
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
cmd: npm run buildMacArm
artifact: darwin-arm-package
path: dist/app/*.zip
env:
SDKROOT: ${{ matrix.env.SDKROOT }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install --omit=optional
- name: build package
run: ${{ matrix.cmd }}
- name: upload package
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.path }}