Skip to content

Commit a48c37f

Browse files
author
b45632
committed
fix: workflow directory
1 parent 6b41d5a commit a48c37f

4 files changed

Lines changed: 70 additions & 37 deletions

File tree

.git.zip

-585 KB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -14,39 +15,57 @@ jobs:
1415
strategy:
1516
fail-fast: false
1617
matrix:
17-
platform: [ubuntu-22.04, windows-latest, macos-15]
18+
platform:
19+
- ubuntu-22.04
20+
- windows-latest
21+
- macos-15
22+
1823
runs-on: ${{ matrix.platform }}
1924

20-
steps:
21-
- name: Repository auschecken
22-
uses: actions/checkout@v6
25+
defaults:
26+
run:
27+
working-directory: apps/desktop
2328

24-
- name: Node.js 24 einrichten
25-
uses: actions/setup-node@v6
26-
with:
27-
node-version: 24
28-
package-manager-cache: false
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v7
2932

30-
- name: pnpm einrichten
33+
- name: Set up pnpm
3134
uses: pnpm/action-setup@v6
3235
with:
3336
version: 10.33.0
3437

35-
- name: Rust stable einrichten
38+
- name: Set up Node.js
39+
uses: actions/setup-node@v6
40+
with:
41+
node-version: 24
42+
cache: pnpm
43+
cache-dependency-path: apps/desktop/pnpm-lock.yaml
44+
45+
- name: Set up Rust
3646
uses: dtolnay/rust-toolchain@stable
3747

38-
- name: Linux-Systempakete installieren
48+
- name: Cache Rust build artifacts
49+
uses: swatinem/rust-cache@v2
50+
with:
51+
workspaces: apps/desktop/src-tauri -> target
52+
53+
- name: Install Linux system dependencies
3954
if: matrix.platform == 'ubuntu-22.04'
4055
run: |
4156
sudo apt-get update
42-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
57+
sudo apt-get install -y \
58+
libwebkit2gtk-4.1-dev \
59+
libappindicator3-dev \
60+
librsvg2-dev \
61+
patchelf \
62+
xdg-utils
4363
44-
- name: Frontend-Abhängigkeiten installieren
45-
# Nutzt den eingecheckten pnpm-lock.yaml für reproduzierbare Builds.
64+
- name: Install frontend dependencies
4665
run: pnpm install --frozen-lockfile
4766

48-
- name: TypeScript und Frontend bauen
67+
- name: Build frontend
4968
run: pnpm build
5069

51-
- name: Tauri/Rust prüfen
52-
run: cargo check --manifest-path src-tauri/Cargo.toml
70+
- name: Check Rust core
71+
run: cargo check --locked --manifest-path src-tauri/Cargo.toml

.github/workflows/release.yml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}

apps/desktop/test.zip

-23.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)