From f3656b323ea416327a9f2de86aa84da07b1d73fa Mon Sep 17 00:00:00 2001 From: masterElmar Date: Mon, 7 Jul 2025 15:23:43 +0200 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20Caching=20f=C3=BCr=20Rust-Toolchain?= =?UTF-8?q?=20und=20-Befehle=20in=20CI-Workflow=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index da9bb71..255416a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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 \ No newline at end of file + with: + cache: true + cache-on-failure: true + - run: cargo build --release \ No newline at end of file