-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (36 loc) · 1.08 KB
/
test-linux-build.yml
File metadata and controls
47 lines (36 loc) · 1.08 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
name: Test Linux Build
on:
workflow_dispatch:
jobs:
build-electron-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install dependencies
run: pnpm install
- name: Build Nuxt
run: pnpm --filter @dm-hero/app build
- name: Rebuild better-sqlite3 for Electron
run: pnpm --filter @dm-hero/app electron:rebuild
- name: Build Electron app
working-directory: packages/app
run: pnpm exec electron-builder --linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: List build output
run: ls -la packages/app/dist-electron/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dm-hero-linux-test
path: packages/app/dist-electron/*.AppImage
if-no-files-found: warn