From 5730fb006c609bce367643924202bc942616e684 Mon Sep 17 00:00:00 2001 From: Michael Weirauch Date: Mon, 15 Jul 2024 22:42:06 +0200 Subject: [PATCH] WIP --- .github/workflows/ci.yml | 50 +++++++++++++++------------------------- 1 file changed, 18 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88d4f24..29d6a5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,18 +27,13 @@ jobs: uses: actions/checkout@v4 - name: Set up toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - override: "true" - profile: minimal components: rustfmt - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check test: name: Test @@ -56,41 +51,32 @@ jobs: uses: actions/checkout@v4 - name: Set up toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - override: "true" - profile: minimal components: clippy - - name: Cache cargo files - uses: actions/cache@v2 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + # - name: Cache cargo files + # uses: actions/cache@v2 + # with: + # path: | + # ~/.cargo/bin/ + # ~/.cargo/registry/index/ + # ~/.cargo/registry/cache/ + # ~/.cargo/git/db/ + # target/ + # key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - uses: Swatinem/rust-cache@v2 - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all-targets + run: cargo check --all-targets - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: -- --nocapture + run: cargo test -- --nocapture - name: Run cargo clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + run: cargo clippy -- -D warnings tag-release: name: Tag Release