Skip to content

Commit 0dbc5c8

Browse files
KSXGitHubclaude
andauthored
ci: clean workspace artifacts before cache upload (#385)
Adds a `cargo clean --workspace` step to CI workflow files to clean up build artifacts before caching. This helps reduce cache size and ensures cleaner builds in subsequent runs. https://claude.ai/code/session_014NgdhJMEQSguQ8yXAuTfnq --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 356a442 commit 0dbc5c8

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/benchmark.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@ jobs:
115115

116116
- name: Check for performance regressions
117117
run: node ci/github-actions/check-for-performance-regressions.js
118+
119+
- name: Clean workspace artifacts before cache
120+
if: always()
121+
continue-on-error: true
122+
shell: bash
123+
run: cargo clean --workspace

.github/workflows/clippy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ jobs:
5858
BUILD: 'false'
5959
TEST: 'false'
6060
run: ./test.sh
61+
62+
- name: Clean workspace artifacts before cache
63+
if: always()
64+
continue-on-error: true
65+
shell: bash
66+
run: cargo clean --workspace

.github/workflows/deploy.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,3 +616,9 @@ jobs:
616616
asset_path: ./tmp.benchmark-reports.tar.gz
617617
asset_name: benchmark-reports.tar.gz
618618
asset_content_type: application/x-compressed-tar
619+
620+
- name: Clean workspace artifacts before cache
621+
if: always()
622+
continue-on-error: true
623+
shell: bash
624+
run: cargo clean --workspace

.github/workflows/test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ jobs:
7373
BUILD_FLAGS: '--locked'
7474
TEST_FLAGS: '--no-fail-fast'
7575
run: ./test.sh --release
76+
77+
- name: Clean workspace artifacts before cache
78+
if: always()
79+
continue-on-error: true
80+
shell: bash
81+
run: cargo clean --workspace

0 commit comments

Comments
 (0)