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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
cache: true
|
||||||
|
cache-on-failure: true
|
||||||
- run: cargo check
|
- run: cargo check
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@ -17,6 +20,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
cache: true
|
||||||
|
cache-on-failure: true
|
||||||
- run: cargo test
|
- run: cargo test
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
@ -25,7 +31,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- 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
|
- run: cargo fmt --all -- --check
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
@ -34,13 +43,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
- run: rustup component add clippy
|
with:
|
||||||
- run: cargo clippy -- -D warnings
|
components: clippy
|
||||||
|
cache: true
|
||||||
|
cache-on-failure: true
|
||||||
|
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- 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