Skip to content

refactor: simplify code ( part I ) (#3) #13

refactor: simplify code ( part I ) (#3)

refactor: simplify code ( part I ) (#3) #13

Workflow file for this run

name: CI-RS
on:
push:
paths:
- "**/.github/workflows/ci-rs.yml"
- "**/Cargo.lock"
- "**/Cargo.toml"
- "**/src-tauri/**"
- "**/rust-toolchain"
- "**/.taplo.toml"
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
# Set more verbose terminal output
CARGO_TERM_VERBOSE: true
RUST_BACKTRACE: 1
# Cancel old builds on new commit for same workflow + branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci-rs:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
steps:
- name: Get source code
uses: actions/checkout@v3
- name: Setup ${{ matrix.rust-toolchain }} rust toolchain with caching
uses: brndnmtthws/rust-action@v1
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rustfmt, clippy
enable-sccache: "true"
- name: Install Tauri
run: cargo install tauri
- name: Build
run: cargo tauri build --release
- name: Test
run: cargo test --release
- name: Lint
run: cargo fmt --all -- --check
# && cargo clippy --verbose -- -D warnings