diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 78e48990..9d2efb5a 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -12,9 +12,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Enable Rust cache - uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1 - - name: Set up Rust toolchain uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33 # https://github.com/dtolnay/rust-toolchain/commit/ba37adf8f94a7d9affce79bd3baff1b9e3189c33 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2f1633c..b1dec361 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,7 @@ jobs: - name: Enable Rust cache uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1 + if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork - name: Check cargo fmt run: cargo fmt --all -- --check @@ -226,8 +227,7 @@ jobs: - name: Enable Rust cache uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1 - with: - key: ${{ matrix.info.target }} + if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork - name: Check uses: ClementTsang/cargo-action@v0.0.3 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 10ce30fa..35c91820 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -44,6 +44,7 @@ jobs: - name: Enable Rust cache uses: Swatinem/rust-cache@22c9328bcba27aa81a32b1bef27c7e3c78052531 # 2.0.1 + if: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} # If it is a PR, only if not a fork - name: Install cargo-llvm-cov run: |