diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d2a2cd8..e4601fd 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -41,13 +41,10 @@ jobs: steps: - name: Installing Rust toolchain uses: dtolnay/rust-toolchain@stable - id: toolchain with: targets: ${{ matrix.job.target }} - name: Rust cache uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{steps.toolchain.outputs.cachekey}} - name: Checkout repository uses: actions/checkout@v4 - name: Install cross diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b1fb5a..4dc4d7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,13 +42,10 @@ jobs: uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@stable - id: toolchain with: targets: ${{ matrix.job.target }} - name: Rust cache uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{steps.toolchain.outputs.cachekey}} - name: Install cross if: matrix.job.use-cross uses: taiki-e/install-action@v2 @@ -79,11 +76,8 @@ jobs: uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@stable - id: toolchain - name: Rust cache uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{steps.toolchain.outputs.cachekey}} - name: Build for release run: cargo build --target ${{ matrix.target }} --release - name: Run executable @@ -99,13 +93,10 @@ jobs: uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@stable - id: toolchain with: components: rustfmt - name: Rust cache uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{steps.toolchain.outputs.cachekey}} - name: Check formatting run: cargo fmt --all --check @@ -117,13 +108,10 @@ jobs: uses: actions/checkout@v4 - name: Install Rust uses: dtolnay/rust-toolchain@stable - id: toolchain with: components: clippy - name: Rust cache uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{steps.toolchain.outputs.cachekey}} - name: Clippy Check run: cargo clippy -- -D warnings @@ -135,11 +123,8 @@ jobs: uses: actions/checkout@v4 - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable - id: toolchain - name: Rust cache uses: Swatinem/rust-cache@v2 - with: - shared-key: ${{steps.toolchain.outputs.cachekey}} - name: Install cargo-tarpaulin uses: taiki-e/install-action@v2 with: