@@ -13,11 +13,11 @@ jobs:
1313 matrix :
1414 include :
1515 - platform : ' macos-latest'
16+ args : ' --target universal-apple-darwin'
1617 name : ' macOS'
1718 - platform : ' windows-latest'
19+ args : ' '
1820 name : ' Windows'
19- - platform : ' ubuntu-latest'
20- name : ' Linux'
2121
2222 runs-on : ${{ matrix.platform }}
2323
3737
3838 - name : Setup Rust
3939 uses : dtolnay/rust-toolchain@stable
40+ with :
41+ # For universal macOS build
42+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4043
4144 - name : Install dependencies (Ubuntu)
4245 if : matrix.platform == 'ubuntu-latest'
@@ -47,25 +50,21 @@ jobs:
4750 - name : Install frontend dependencies
4851 run : pnpm install
4952
50- - name : Build frontend
51- run : pnpm build
52-
5353 - name : Build Tauri app
54- run : pnpm tauri build
55-
56- - name : List build artifacts (Debug)
57- run : |
58- echo "=== Build artifacts for ${{ matrix.platform }} ==="
59- find src-tauri/target -name "*.dmg" -o -name "*.app" -o -name "*.msi" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" | head -20
54+ uses : tauri-apps/tauri-action@v0
55+ env :
56+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57+ with :
58+ args : ${{ matrix.args }}
6059
6160 - name : Upload artifacts (macOS)
6261 if : matrix.platform == 'macos-latest'
6362 uses : actions/upload-artifact@v4
6463 with :
6564 name : macos-build
6665 path : |
67- src-tauri/target/release/bundle/dmg/*.dmg
68- src-tauri/target/release/bundle/macos/*.app
66+ src-tauri/target/universal-apple-darwin/ release/bundle/dmg/*.dmg
67+ src-tauri/target/universal-apple-darwin/ release/bundle/macos/*.app
6968 if-no-files-found : warn
7069
7170 - name : Upload artifacts (Windows)
7877 src-tauri/target/release/bundle/nsis/*.exe
7978 if-no-files-found : warn
8079
81- - name : Upload artifacts (Linux)
82- if : matrix.platform == 'ubuntu-latest'
83- uses : actions/upload-artifact@v4
84- with :
85- name : linux-build
86- path : |
87- src-tauri/target/release/bundle/appimage/*.AppImage
88- src-tauri/target/release/bundle/deb/*.deb
89- if-no-files-found : warn
90-
9180 release :
9281 needs : build
9382 if : startsWith(github.ref, 'refs/tags/v')
@@ -98,23 +87,13 @@ jobs:
9887 with :
9988 path : artifacts
10089
101- - name : List downloaded artifacts (Debug)
102- run : |
103- echo "=== Downloaded artifacts ==="
104- find artifacts -type f -name "*" | head -20
105-
10690 - name : Create Release
10791 uses : softprops/action-gh-release@v1
10892 with :
10993 files : |
110- artifacts/macos-build/**/*.dmg
111- artifacts/macos-build/**/*.app
112- artifacts/windows-build/**/*.msi
113- artifacts/windows-build/**/*.exe
114- artifacts/linux-build/**/*.AppImage
115- artifacts/linux-build/**/*.deb
116- draft : false
117- prerelease : false
94+ artifacts/**/*.dmg
95+ artifacts/**/*.msi
96+ artifacts/**/*.exe
11897 env :
11998 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12099
0 commit comments