-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (66 loc) · 1.89 KB
/
Copy pathbuild.yml
File metadata and controls
81 lines (66 loc) · 1.89 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build
on:
workflow_dispatch:
workflow_call:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
package:
name: Build ${{ matrix.platform }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- platform: linux
arch: x64
os: ubuntu-latest
builder_args: --linux AppImage --x64
- platform: macos
arch: x64
os: macos-15-intel
builder_args: --mac dmg --x64
- platform: macos
arch: arm64
os: macos-14
builder_args: --mac dmg --arm64
- platform: windows
arch: x64
os: windows-latest
builder_args: --win portable --x64
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install Linux native build dependencies
if: matrix.platform == 'linux'
run: sudo apt-get update && sudo apt-get install -y build-essential python3 make g++
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Test
run: npm test
- name: Build renderer and main
run: npm run build:force
- name: Package app
shell: bash
run: npx electron-builder ${{ matrix.builder_args }} --publish never -c.compression=maximum
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: StackDock-${{ matrix.platform }}-${{ matrix.arch }}
path: |
release/*.AppImage
release/*.dmg
release/*.exe
if-no-files-found: error
compression-level: 0