Skip to content

Commit 85689cd

Browse files
committed
cargo-tauri
1 parent f1c5b4f commit 85689cd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
# Apple Silicon (M1/M2/M3)
1716
- runner: macos-14
1817
target: aarch64-apple-darwin
19-
# Intel macOS
2018
- runner: macos-13
2119
target: x86_64-apple-darwin
2220

@@ -35,15 +33,19 @@ jobs:
3533
with:
3634
workspaces: './src-tauri -> target'
3735

38-
- name: Install trunk, wasm-bindgen-cli, and Tauri CLI (v2)
36+
- name: Ensure Cargo bin is on PATH
37+
run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
38+
39+
- name: Install trunk, wasm-bindgen-cli, and cargo-tauri (v2)
3940
run: |
4041
cargo install trunk --locked || true
4142
cargo install wasm-bindgen-cli --locked || true
42-
cargo install tauri-cli --locked --version ^2 || true
43-
cargo --list | grep -E '^ tauri\b' || (echo "cargo tauri not installed" && exit 1)
43+
cargo install cargo-tauri --locked --version ^2 || true
44+
cargo --list | sed -n '/Installed Commands/,$p' | grep -E '^\s+tauri\b' || (echo "cargo tauri not installed" && exit 1)
45+
cargo tauri --version
4446
4547
- name: Build Leptos frontend (WASM) with trunk
46-
# If your index.html/Cargo.toml live elsewhere, set working-directory accordingly.
48+
# adjust working-directory if your index.html is elsewhere
4749
working-directory: .
4850
run: trunk build --release
4951

0 commit comments

Comments
 (0)