Skip to content

Commit 96d96ec

Browse files
committed
CI: use tauri-action for branch builds (fixes missing bundles)
The manual 'cargo tauri build' wasn't generating .dmg/.app properly without code signing. tauri-action handles ad-hoc signing and all bundle types correctly (same as release.yml). Uploads entire bundle/ directory as artifact.
1 parent f493d8a commit 96d96ec

1 file changed

Lines changed: 12 additions & 27 deletions

File tree

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

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build & Test GUI (branch)
22

3+
permissions:
4+
contents: write
5+
36
on:
47
push:
58
branches: [v1.1.1]
@@ -103,39 +106,21 @@ jobs:
103106
}
104107
$json | ConvertTo-Json -Depth 100 | Set-Content -Encoding utf8 $confPath
105108
109+
# Use tauri-action (same as release.yml) — handles signing, bundling, etc.
110+
# tagName is empty so it won't create a release, just builds
106111
- name: Build Tauri app
112+
uses: tauri-apps/tauri-action@v0
107113
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108115
APPLE_SIGNING_IDENTITY: ${{ startsWith(matrix.platform, 'macos') && '-' || '' }}
109-
run: |
110-
cd src-tauri
111-
cargo install tauri-cli --version "^2" --locked || true
112-
cd ..
113-
cargo tauri build ${{ matrix.args }}
114-
115-
- name: Upload artifacts (macOS .dmg)
116-
if: startsWith(matrix.platform, 'macos')
117-
uses: actions/upload-artifact@v4
118116
with:
119-
name: get_MNV-${{ matrix.label }}
120-
path: src-tauri/target/${{ matrix.rust_target }}/release/bundle/dmg/*.dmg
121-
retention-days: 14
117+
args: ${{ matrix.args }}
118+
projectPath: src-tauri
122119

123-
- name: Upload artifacts (Linux .deb + .AppImage)
124-
if: matrix.platform == 'ubuntu-22.04'
125-
uses: actions/upload-artifact@v4
126-
with:
127-
name: get_MNV-${{ matrix.label }}
128-
path: |
129-
src-tauri/target/${{ matrix.rust_target }}/release/bundle/deb/*.deb
130-
src-tauri/target/${{ matrix.rust_target }}/release/bundle/appimage/*.AppImage
131-
retention-days: 14
132-
133-
- name: Upload artifacts (Windows .msi + .exe)
134-
if: matrix.platform == 'windows-latest'
120+
- name: Upload all bundles
135121
uses: actions/upload-artifact@v4
136122
with:
137123
name: get_MNV-${{ matrix.label }}
138-
path: |
139-
src-tauri/target/${{ matrix.rust_target }}/release/bundle/msi/*.msi
140-
src-tauri/target/${{ matrix.rust_target }}/release/bundle/nsis/*.exe
124+
path: src-tauri/target/${{ matrix.rust_target }}/release/bundle/**/*
141125
retention-days: 14
126+
if-no-files-found: error

0 commit comments

Comments
 (0)