Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Fix ci cd (#3)
Browse files Browse the repository at this point in the history
* Fix `error: unexpected argument '--release' found`

* Change pipeline names

* Install depends via cargo-install in cache

* Use cargo-bininstall alternative

* Use the full commit SHA instead.

* Add no confirm in binstall

* Remove tauri-cli from test pipeline

* Addthe target  `wasm32-unknown-unknown` in pipeline

* Remove `--release` in `cargo tauri build`
  • Loading branch information
satler-git authored Jul 31, 2024
1 parent b86c110 commit 07aa8dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust Build

on:
push:
Expand Down Expand Up @@ -27,12 +27,17 @@ jobs:
- name: Setup Rust toolchain and cli
run: |
rustup target add ${{ matrix.target }}
cargo install tauri-cli
rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust-${{ matrix.target }}"
- uses: cargo-bins/cargo-binstall@c635ad6f957466c7818a18cb88570757ee1002b3
- name: Install depends via cargo-install
run: |
cargo binstall tauri-cli --no-confirm
cargo binstall trunk --locked --no-confirm
- name: Build
run: cargo tauri build --verbose --release
run: cargo tauri build --verbose --ci
- name: Upload artifacts(Windows)
uses: actions/upload-artifact@v4
if: matrix.os == 'windows-latest'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust Test

on:
push:
Expand Down Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Rust toolchain and cli
run: |
rustup target add ${{ matrix.target }}
cargo install tauri-cli
rustup target add wasm32-unknown-unknown
# rustup install nightly
# rustup +nightly component add miri
- uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit 07aa8dc

Please sign in to comment.