Füge Caching für Rust-Toolchain und -Befehle in CI-Workflow hinzu
All checks were successful
Continuous integration / Check (push) Successful in 10m18s
Continuous integration / Test Suite (push) Successful in 10m25s
Continuous integration / Rustfmt (push) Successful in 9m55s
Continuous integration / Clippy (push) Successful in 10m18s
Continuous integration / Build (push) Successful in 11m4s
All checks were successful
Continuous integration / Check (push) Successful in 10m18s
Continuous integration / Test Suite (push) Successful in 10m25s
Continuous integration / Rustfmt (push) Successful in 9m55s
Continuous integration / Clippy (push) Successful in 10m18s
Continuous integration / Build (push) Successful in 11m4s
This commit is contained in:
@ -9,6 +9,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
cache: true
|
||||
cache-on-failure: true
|
||||
- run: cargo check
|
||||
|
||||
test:
|
||||
@ -17,6 +20,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
cache: true
|
||||
cache-on-failure: true
|
||||
- run: cargo test
|
||||
|
||||
fmt:
|
||||
@ -25,7 +31,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup component add rustfmt
|
||||
with:
|
||||
components: rustfmt
|
||||
cache: true
|
||||
cache-on-failure: true
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
@ -34,13 +43,19 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup component add clippy
|
||||
- run: cargo clippy -- -D warnings
|
||||
with:
|
||||
components: clippy
|
||||
cache: true
|
||||
cache-on-failure: true
|
||||
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
build:
|
||||
name: build
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo build
|
||||
with:
|
||||
cache: true
|
||||
cache-on-failure: true
|
||||
- run: cargo build --release
|
Reference in New Issue
Block a user