Skip to content

Commit 12ff0e6

Browse files
authored
Merge pull request #138 from TrueNine/dev
Dev
2 parents ffd060d + d33ed34 commit 12ff0e6

File tree

17 files changed

+324
-210
lines changed

17 files changed

+324
-210
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build GUI Platform
2+
description: Setup, build, inspect, and upload Tauri GUI artifacts for one platform
3+
4+
inputs:
5+
version:
6+
description: Version string to sync into Cargo.toml and tauri.conf.json
7+
required: true
8+
tauri-command:
9+
description: Command used to build the GUI bundle
10+
required: true
11+
artifact-name:
12+
description: Artifact name used by actions/upload-artifact
13+
required: true
14+
artifact-path:
15+
description: Newline-separated artifact globs for upload-artifact
16+
required: true
17+
rust-targets:
18+
description: Optional Rust targets to install (comma-separated)
19+
required: false
20+
default: ""
21+
signing-private-key:
22+
description: Tauri updater signing private key content
23+
required: false
24+
default: ""
25+
signing-private-key-password:
26+
description: Tauri updater signing private key password
27+
required: false
28+
default: ""
29+
30+
runs:
31+
using: composite
32+
steps:
33+
- uses: ./.github/actions/setup-node-pnpm
34+
35+
- uses: ./.github/actions/setup-tauri
36+
with:
37+
rust-targets: ${{ inputs.rust-targets }}
38+
signing-private-key: ${{ inputs.signing-private-key }}
39+
signing-private-key-password: ${{ inputs.signing-private-key-password }}
40+
version: ${{ inputs.version }}
41+
42+
- name: Build GUI
43+
shell: bash
44+
working-directory: ./gui
45+
run: ${{ inputs.tauri-command }}
46+
47+
- name: List bundle output
48+
shell: bash
49+
run: |
50+
echo "=== Finding all bundle artifacts ==="
51+
find target -path '*/bundle/*' -type f 2>/dev/null || echo 'No bundle files found'
52+
53+
- name: Upload artifacts
54+
uses: actions/upload-artifact@v7
55+
with:
56+
name: ${{ inputs.artifact-name }}
57+
path: ${{ inputs.artifact-path }}
58+
if-no-files-found: error

.github/workflows/build-gui-all.yml

Lines changed: 26 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,70 +17,45 @@ jobs:
1717
matrix:
1818
include:
1919
- os: windows-latest
20-
platform: windows
2120
rust-targets: ''
2221
tauri-command: pnpm tauri build
22+
artifact-path: |
23+
target/*/release/bundle/**/*.exe
24+
target/release/bundle/**/*.exe
25+
target/*/release/bundle/**/*.sig
26+
target/release/bundle/**/*.sig
2327
- os: ubuntu-24.04
24-
platform: linux
2528
rust-targets: ''
2629
tauri-command: pnpm tauri build
30+
artifact-path: |
31+
target/*/release/bundle/**/*.AppImage
32+
target/*/release/bundle/**/*.deb
33+
target/*/release/bundle/**/*.rpm
34+
target/*/release/bundle/**/*.sig
35+
target/release/bundle/**/*.AppImage
36+
target/release/bundle/**/*.deb
37+
target/release/bundle/**/*.rpm
38+
target/release/bundle/**/*.sig
2739
- os: macos-14
28-
platform: macos
2940
rust-targets: aarch64-apple-darwin,x86_64-apple-darwin
3041
tauri-command: pnpm tauri build --target universal-apple-darwin
42+
artifact-path: |
43+
target/*/release/bundle/**/*.dmg
44+
target/*/release/bundle/**/*.tar.gz
45+
target/*/release/bundle/**/*.sig
46+
target/release/bundle/**/*.dmg
47+
target/release/bundle/**/*.tar.gz
48+
target/release/bundle/**/*.sig
3149
runs-on: ${{ matrix.os }}
3250
steps:
3351
- uses: actions/checkout@v6
34-
- uses: ./.github/actions/setup-node-pnpm
35-
- uses: ./.github/actions/setup-tauri
52+
53+
- uses: ./.github/actions/build-gui-platform
3654
with:
55+
tauri-command: ${{ matrix.tauri-command }}
56+
artifact-name: gui-${{ matrix.os }}
57+
artifact-path: ${{ matrix.artifact-path }}
3758
rust-targets: ${{ matrix.rust-targets }}
3859
signing-private-key: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
3960
signing-private-key-password: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
4061
version: ${{ inputs.version }}
41-
42-
- name: Build GUI
43-
working-directory: ./gui
44-
run: ${{ matrix.tauri-command }}
45-
46-
- name: Upload Windows artifacts
47-
if: matrix.platform == 'windows'
48-
uses: actions/upload-artifact@v7
49-
with:
50-
name: gui-${{ matrix.os }}
51-
path: |
52-
target/*/release/bundle/**/*.exe
53-
target/release/bundle/**/*.exe
54-
target/*/release/bundle/**/*.sig
55-
target/release/bundle/**/*.sig
56-
if-no-files-found: error
57-
58-
- name: Upload Linux artifacts
59-
if: matrix.platform == 'linux'
60-
uses: actions/upload-artifact@v7
61-
with:
62-
name: gui-${{ matrix.os }}
63-
path: |
64-
target/*/release/bundle/**/*.AppImage
65-
target/*/release/bundle/**/*.deb
66-
target/*/release/bundle/**/*.rpm
67-
target/*/release/bundle/**/*.sig
68-
target/release/bundle/**/*.AppImage
69-
target/release/bundle/**/*.deb
70-
target/release/bundle/**/*.rpm
71-
target/release/bundle/**/*.sig
72-
if-no-files-found: error
73-
74-
- name: Upload macOS artifacts
75-
if: matrix.platform == 'macos'
76-
uses: actions/upload-artifact@v7
77-
with:
78-
name: gui-${{ matrix.os }}
79-
path: |
80-
target/*/release/bundle/**/*.dmg
81-
target/*/release/bundle/**/*.tar.gz
82-
target/*/release/bundle/**/*.sig
83-
target/release/bundle/**/*.dmg
84-
target/release/bundle/**/*.tar.gz
85-
target/release/bundle/**/*.sig
86-
if-no-files-found: error

0 commit comments

Comments
 (0)