@@ -17,52 +17,66 @@ jobs:
1717 include :
1818 - platform : macos-15
1919 args : --target universal-apple-darwin
20- rust_targets : aarch64-apple-darwin,x86_64-apple-darwin
2120 - platform : ubuntu-22.04
2221 args : " "
23- rust_targets : " "
2422 - platform : windows-latest
2523 args : " "
26- rust_targets : " "
24+
2725 runs-on : ${{ matrix.platform }}
2826
27+ defaults :
28+ run :
29+ working-directory : apps/desktop
30+
2931 steps :
30- - name : Repository auschecken
31- uses : actions/checkout@v6
32+ - name : Checkout repository
33+ uses : actions/checkout@v7
34+
35+ - name : Set up pnpm
36+ uses : pnpm/action-setup@v6
37+ with :
38+ version : 10.33.0
3239
33- - name : Node.js 24 einrichten
40+ - name : Set up Node.js
3441 uses : actions/setup-node@v6
3542 with :
3643 node-version : 24
37- package-manager-cache : false
44+ cache : pnpm
45+ cache-dependency-path : apps/desktop/pnpm-lock.yaml
3846
39- - name : pnpm einrichten
40- uses : pnpm/action-setup@v6
47+ - name : Set up Rust
48+ uses : dtolnay/rust-toolchain@stable
4149 with :
42- version : 10.33.0
50+ targets : ${{ matrix.platform == 'macos-15' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4351
44- - name : Rust stable einrichten
45- uses : dtolnay /rust-toolchain@stable
52+ - name : Cache Rust build artifacts
53+ uses : swatinem /rust-cache@v2
4654 with :
47- targets : ${{ matrix.rust_targets }}
55+ workspaces : apps/desktop/src-tauri -> target
4856
49- - name : Linux-Systempakete installieren
57+ - name : Install Linux system dependencies
5058 if : matrix.platform == 'ubuntu-22.04'
5159 run : |
5260 sudo apt-get update
53- sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
61+ sudo apt-get install -y \
62+ libwebkit2gtk-4.1-dev \
63+ libappindicator3-dev \
64+ librsvg2-dev \
65+ patchelf \
66+ xdg-utils
5467
55- - name : Frontend-Abhängigkeiten installieren
68+ - name : Install frontend dependencies
5669 run : pnpm install --frozen-lockfile
5770
58- - name : Tauri-App bauen und Release-Artefakte hochladen
59- uses : tauri-apps/tauri-action@v0
71+ - name : Build and publish Tauri application
72+ uses : tauri-apps/tauri-action@v1
6073 env :
6174 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6275 with :
76+ projectPath : apps/desktop
6377 tagName : ${{ github.ref_name }}
6478 releaseName : " Code Deck ${{ github.ref_name }}"
65- releaseBody : " Änderungen und bekannte Einschränkungen stehen in CHANGELOG.md."
79+ releaseBody : " See apps/desktop/ CHANGELOG.md for details ."
6680 releaseDraft : true
6781 prerelease : false
6882 args : ${{ matrix.args }}
0 commit comments