This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
cargo fmt #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: | |
- x86_64-pc-windows-msvc | |
include: | |
- target: x86_64-pc-windows-msvc | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust toolchain and cli | |
run: | | |
rustup target add ${{ matrix.target }} | |
rustup target add wasm32-unknown-unknown | |
# rustup install nightly | |
# rustup +nightly component add miri | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v0-rust-${{ matrix.target }}" | |
- name: Test | |
run: | | |
cargo test | |
cd src-tauri | |
cargo test | |
# cargo +nightly miri test |