mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
separate run jobs
This commit is contained in:
26
.github/workflows/rust.yml
vendored
26
.github/workflows/rust.yml
vendored
@@ -73,14 +73,18 @@ jobs:
|
||||
.venv\Scripts\activate.ps1
|
||||
py -m pip install gvsbuild
|
||||
gvsbuild build --msys-dir=C:\msys64 gtk4 libadwaita librsvg
|
||||
- name: Run cargo ${{ matrix.job }}
|
||||
run: |
|
||||
if [ "${{ matrix.job }}" = "build" ]; then
|
||||
cargo build
|
||||
elif [ "${{ matrix.job }}" = "check" ]; then
|
||||
cargo check --workspace --all-targets --all-features
|
||||
elif [ "${{ matrix.job }}" = "clippy" ]; then
|
||||
cargo clippy --all-features --all-targets -- --deny warnings
|
||||
elif [ "${{ matrix.job }}" = "test" ]; then
|
||||
cargo test --workspace --all-targets --all-features
|
||||
fi
|
||||
- name: cargo build
|
||||
if: matrix.job == 'build'
|
||||
run: cargo check --workspace --all-targets --all-features
|
||||
|
||||
- name: cargo check
|
||||
if: matrix.job == 'check'
|
||||
run: cargo check --workspace --all-targets --all-features
|
||||
|
||||
- name: cargo test
|
||||
if: matrix.job == 'test'
|
||||
run: cargo test --workspace --all-features
|
||||
|
||||
- name: cargo clippy
|
||||
if: matrix.job == 'clippy'
|
||||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
|
||||
Reference in New Issue
Block a user