summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-08-19 17:07:25 +0700
committerGitHub <[email protected]>2026-08-19 17:07:25 +0700
commit34e8d99ade2c18c4ab629f307544962e0af5347c (patch)
tree99575dd56e43ed7d2cdcac57a43264c49986c231
parent82a577bde640c95ed25185af91c53b9f9f4ae29a (diff)
parent0fab079ed8731d0b580a17a09a756d78e7a50a64 (diff)
Merge pull request #3834 from hathach/claude/circleci-toolchain-cache-key
ci(circleci): key the toolchain cache off a file that always exists
-rw-r--r--.circleci/config2.yml10
1 files changed, 3 insertions, 7 deletions
diff --git a/.circleci/config2.yml b/.circleci/config2.yml
index 4cd848131..e0bd917a4 100644
--- a/.circleci/config2.yml
+++ b/.circleci/config2.yml
@@ -8,18 +8,14 @@ commands:
steps:
- run:
- name: Set toolchain url and key
+ name: Set toolchain url
command: |
toolchain_url=$(jq -r '."<< parameters.toolchain >>"' .github/actions/setup_toolchain/toolchain.json)
- # only cache if not a github link
- if [[ $toolchain_url != "https://github.com"* ]]; then
- echo "<< parameters.toolchain >>-$toolchain_url" > toolchain_key
- fi
echo "export toolchain_url=$toolchain_url" >> $BASH_ENV
- restore_cache:
name: Restore Toolchain Cache
- key: deps-{{ checksum "toolchain_key" }}
+ key: deps-<< parameters.toolchain >>-{{ checksum ".github/actions/setup_toolchain/toolchain.json" }}
paths:
- ~/cache/<< parameters.toolchain >>
@@ -59,7 +55,7 @@ commands:
- save_cache:
name: Save Toolchain Cache
- key: deps-{{ checksum "toolchain_key" }}
+ key: deps-<< parameters.toolchain >>-{{ checksum ".github/actions/setup_toolchain/toolchain.json" }}
paths:
- ~/cache/<< parameters.toolchain >>