Skip to content

ci: add scheduled workflow to clean caches#1805

Closed
8144225309 wants to merge 1 commit intobitcoin-core:masterfrom
8144225309:ci-clean-caches
Closed

ci: add scheduled workflow to clean caches#1805
8144225309 wants to merge 1 commit intobitcoin-core:masterfrom
8144225309:ci-clean-caches

Conversation

@8144225309
Copy link
Contributor

Add a cron job that deletes all GitHub Actions caches on the 1st and 15th of each month. This ensures the Docker images are rebuilt periodically with newer compiler snapshots (gcc-snapshot, clang-snapshot).

The workflow:

  • Runs on the 1st and 15th of each month at 00:00 UTC
  • Can be triggered manually via workflow_dispatch
  • Deletes all caches using gh cache delete

Fixes #1691

Add a cron job that deletes all GitHub Actions caches on the 1st and
15th of each month. This ensures the Docker images are rebuilt
periodically with newer compiler snapshots (gcc-snapshot, clang-snapshot).

Fixes bitcoin-core#1691
@8144225309 8144225309 closed this Jan 23, 2026
@real-or-random
Copy link
Contributor

This couls be a good change. Why are you closing the PR?

@8144225309
Copy link
Contributor Author

8144225309 commented Jan 23, 2026

I was practicing writing the PR professionally while I tested the solution and I accidently shipped it early. Feel free to use it or wait till monday at the latest for a replacement. I only want to push things I've personally tested and I made a mistake here with my setup.

edit: Can reopen for git cleanliness.

@real-or-random
Copy link
Contributor

I only want to push things I've personally tested and I made a mistake here with my setup.

Sure, that makes sense! I think my main point is that I'm suggesting to always state the rationale for closing a PR (because otherwise it is obvious to anyone else).

@8144225309
Copy link
Contributor Author

Closed in favor of #1807, which uses gh cache delete --all instead of a manual loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: Clean the cache regularly to test on new compiler snapshots

2 participants