diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 047ccb2a6..08eb031f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,12 +14,7 @@ on: merge_group: env: - # CARGO_TERM_COLOR: always - # CARGO_INCREMENTAL: '0' - # CARGO_PROFILE_DEV_DEBUG: '0' RUST_TOOLCHAIN_VERSION: "1.80.1" - # RUSTFLAGS: "-D warnings" - # RUSTDOCFLAGS: "-D warnings" RUST_LOG: "info" jobs: @@ -28,6 +23,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --component rust-src -y - - run: cargo test -p stackable-versioned-macros + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} + components: rust-src + - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 + with: + key: test + - run: cargo test