Skip to content

Commit d4b9dcf

Browse files
committed
ci: prune stale cargo artifacts before cache save
Install cargo-sweep in integration and package workflows, then run `cargo sweep -t 7` so stale target artifacts are removed before rust-cache is archived. Made-with: Cursor
1 parent fb48392 commit d4b9dcf

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/integration-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ jobs:
6868
- name: Run Integration Tests
6969
run: make integration-test
7070

71+
- name: Install cargo-sweep
72+
run: cargo install cargo-sweep --locked
73+
74+
- name: Prune stale Cargo artifacts
75+
run: cargo sweep -t 7
76+
7177
- name: Upload Test Logs
7278
if: failure()
7379
uses: actions/upload-artifact@v4

.github/workflows/verify-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ jobs:
7979
- name: Build & Package (Lite)
8080
run: make dist-lite
8181

82+
- name: Install cargo-sweep
83+
run: cargo install cargo-sweep --locked
84+
85+
- name: Prune stale Cargo artifacts
86+
run: cargo sweep -t 7
87+
8288
- name: Verify Artifacts
8389
run: |
8490
ls -lh dist/*.tar.gz dist/*.zip

0 commit comments

Comments
 (0)