-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (66 loc) · 4.22 KB
/
debug-gui-rebuild.yml
File metadata and controls
72 lines (66 loc) · 4.22 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
name: Debug GUI Rebuild
on:
workflow_dispatch:
inputs:
version:
description: Version to rebuild without the v prefix
required: true
type: string
platform:
description: Platform to rebuild
required: true
default: all
type: choice
options:
- all
- linux
- macos
- windows
permissions:
contents: read
jobs:
select-platforms:
runs-on: ubuntu-24.04
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- id: matrix
shell: bash
run: |
case "${{ inputs.platform }}" in
all)
value='{"include":[{"platform_key":"linux","os":"ubuntu-24.04","tauri-command":"pnpm tauri build","artifact-name":"debug-gui-linux","artifact-path":"target/*/release/bundle/**/*.AppImage\ntarget/*/release/bundle/**/*.deb\ntarget/*/release/bundle/**/*.rpm\ntarget/*/release/bundle/**/*.sig\ntarget/release/bundle/**/*.AppImage\ntarget/release/bundle/**/*.deb\ntarget/release/bundle/**/*.rpm\ntarget/release/bundle/**/*.sig"},{"platform_key":"macos","os":"macos-14","rust_targets":"aarch64-apple-darwin,x86_64-apple-darwin","tauri-command":"pnpm tauri build --target universal-apple-darwin","artifact-name":"debug-gui-macos","artifact-path":"target/*/release/bundle/**/*.dmg\ntarget/*/release/bundle/**/*.tar.gz\ntarget/*/release/bundle/**/*.sig\ntarget/release/bundle/**/*.dmg\ntarget/release/bundle/**/*.tar.gz\ntarget/release/bundle/**/*.sig"},{"platform_key":"windows","os":"windows-latest","tauri-command":"pnpm tauri build","artifact-name":"debug-gui-windows","artifact-path":"target/*/release/bundle/**/*.exe\ntarget/*/release/bundle/**/*.msi\ntarget/*/release/bundle/**/*.sig\ntarget/*/release/bundle/**/*.zip\ntarget/release/bundle/**/*.exe\ntarget/release/bundle/**/*.msi\ntarget/release/bundle/**/*.sig\ntarget/release/bundle/**/*.zip"}]}'
;;
linux)
value='{"include":[{"platform_key":"linux","os":"ubuntu-24.04","tauri-command":"pnpm tauri build","artifact-name":"debug-gui-linux","artifact-path":"target/*/release/bundle/**/*.AppImage\ntarget/*/release/bundle/**/*.deb\ntarget/*/release/bundle/**/*.rpm\ntarget/*/release/bundle/**/*.sig\ntarget/release/bundle/**/*.AppImage\ntarget/release/bundle/**/*.deb\ntarget/release/bundle/**/*.rpm\ntarget/release/bundle/**/*.sig"}]}'
;;
macos)
value='{"include":[{"platform_key":"macos","os":"macos-14","rust_targets":"aarch64-apple-darwin,x86_64-apple-darwin","tauri-command":"pnpm tauri build --target universal-apple-darwin","artifact-name":"debug-gui-macos","artifact-path":"target/*/release/bundle/**/*.dmg\ntarget/*/release/bundle/**/*.tar.gz\ntarget/*/release/bundle/**/*.sig\ntarget/release/bundle/**/*.dmg\ntarget/release/bundle/**/*.tar.gz\ntarget/release/bundle/**/*.sig"}]}'
;;
windows)
value='{"include":[{"platform_key":"windows","os":"windows-latest","tauri-command":"pnpm tauri build","artifact-name":"debug-gui-windows","artifact-path":"target/*/release/bundle/**/*.exe\ntarget/*/release/bundle/**/*.msi\ntarget/*/release/bundle/**/*.sig\ntarget/*/release/bundle/**/*.zip\ntarget/release/bundle/**/*.exe\ntarget/release/bundle/**/*.msi\ntarget/release/bundle/**/*.sig\ntarget/release/bundle/**/*.zip"}]}'
;;
*)
echo "::error::Unsupported platform '${{ inputs.platform }}'"
exit 1
;;
esac
echo "value=${value}" >> "$GITHUB_OUTPUT"
rebuild-gui:
needs: select-platforms
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.select-platforms.outputs.matrix) }}
runs-on: ${{ matrix.os }}
timeout-minutes: 75
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/build-gui-platform
with:
tauri-command: ${{ matrix.tauri-command }}
artifact-name: ${{ matrix.artifact-name }}
artifact-path: ${{ matrix.artifact-path }}
rust-targets: ${{ matrix.rust_targets || '' }}
signing-private-key: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
signing-private-key-password: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
version: ${{ inputs.version }}