Skip to content

workflows: remove unaccessed files from cache before saving #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ jobs:
if-no-files-found: error
retention-days: 3

- name: remove unaccessed files from cache
shell: bash
run: >
find /tmp/bazel/cache
-type f
-name '*'
-amin +360
-exec rm {} \;

- name: save bazel cache
uses: actions/cache/save@v3
if: always()
Expand Down Expand Up @@ -352,6 +361,15 @@ jobs:
--per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\"
//test:signature_util_test

- name: remove unaccessed files from cache
shell: bash
run: >
find /tmp/bazel/cache
-type f
-name '*'
-amin +360
-exec rm {} \;

- name: save bazel cache
uses: actions/cache/save@v3
if: always()
Expand Down
Loading