Skip to content

Commit

Permalink
fix: CARGO_INCREMENTAL
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Dec 23, 2024
1 parent 6ba29bc commit 028a0eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/rustup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ runs:
if: ${{ startsWith(runner.name, 'GitHub Actions') }}
with:
shared-key: ${{ inputs.shared-key }}
# save-if: ${{ inputs.save-cache == 'true' }}
save-if: ${{ inputs.save-cache == 'true' }}
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
tags-ignore:
- "**"

env:
# Since CI builds are more akin to from-scratch builds, incremental compilation adds unnecessary dependency-tracking and IO overhead, reducing caching effectiveness.
# https://github.com/rust-lang/rust-analyzer/blob/25368d24308d6a94ffe8b99f0122bcf5a2175322/.github/workflows/ci.yaml#L11
CARGO_INCREMENTAL: 0

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
Expand Down

0 comments on commit 028a0eb

Please sign in to comment.