Skip to content

Commit

Permalink
Simplify Rust workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gschier committed Jun 7, 2024
1 parent b5ba078 commit a12453d
Showing 1 changed file with 2 additions and 54 deletions.
56 changes: 2 additions & 54 deletions .github/workflows/ci-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,8 @@ defaults:
working-directory: src-tauri

jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: 'src-tauri'
sparse-checkout-cone-mode: false
- run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo check

test:
name: Test Suite
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -44,39 +26,5 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: cargo check
- run: cargo test --all

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: 'src-tauri'
sparse-checkout-cone-mode: false
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: 'src-tauri'
sparse-checkout-cone-mode: false
- run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- run: cargo clippy -- -D warnings

0 comments on commit a12453d

Please sign in to comment.