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

Fix ci cd #3

Merged
merged 9 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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