Skip to content

Commit 93d75a9

Browse files
committed
ci: remove unnecessary weekly cache rotation
rust-cache already includes Cargo.lock hash in cache key
1 parent 1eea099 commit 93d75a9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ jobs:
2222
run: Set-MpPreference -DisableRealtimeMonitoring $true
2323
shell: pwsh
2424
- uses: dtolnay/rust-toolchain@stable
25-
- name: Get cache week
26-
id: cache-week
27-
run: echo "week=$(date +%Y-%W)" >> $GITHUB_OUTPUT
28-
shell: bash
2925
- uses: Swatinem/rust-cache@v2
3026
with:
31-
shared-key: "${{ steps.cache-week.outputs.week }}-${{ inputs.os }}"
27+
shared-key: "${{ inputs.os }}"
3228
cache-on-failure: true
3329
- name: Build workspace (including test binaries)
3430
run: cargo test --workspace --all-features --no-run ${{ inputs.exclude-crates && format('--exclude {0}', inputs.exclude-crates) || '' }}
@@ -48,13 +44,9 @@ jobs:
4844
run: Set-MpPreference -DisableRealtimeMonitoring $true
4945
shell: pwsh
5046
- uses: dtolnay/rust-toolchain@stable
51-
- name: Get cache week
52-
id: cache-week
53-
run: echo "week=$(date +%Y-%W)" >> $GITHUB_OUTPUT
54-
shell: bash
5547
- uses: Swatinem/rust-cache@v2
5648
with:
57-
shared-key: "${{ steps.cache-week.outputs.week }}-${{ inputs.os }}"
49+
shared-key: "${{ inputs.os }}"
5850
save-if: false
5951
- uses: actions/setup-python@v5
6052
with:

0 commit comments

Comments
 (0)