Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(CircleCI): make cache depend on script files
Browse files Browse the repository at this point in the history
CircleCI caches are immutable once they are written, make them depend on
the script files they are generated from.
  • Loading branch information
sudden6 committed Mar 24, 2019
1 parent acb99f8 commit 7bbbb73
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
sudo apt-get update
sudo apt-get install zip tree
- restore_cache:
key: dependency-cache-64
key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
- run:
Expand All @@ -31,15 +31,15 @@ jobs:
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2
ls -al cache
- save_cache:
key: dependency-cache-64
key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
release64:
machine: true
steps:
- checkout
- restore_cache:
key: dependency-cache-64
key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
- run:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-64
key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
- run:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
sudo apt-get update
sudo apt-get install zip tree
- restore_cache:
key: dependency-cache-32
key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
- run:
Expand All @@ -124,15 +124,15 @@ jobs:
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2
ls -al cache
- save_cache:
key: dependency-cache-32
key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
release32:
machine: true
steps:
- checkout
- restore_cache:
key: dependency-cache-32
key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
- run:
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: dependency-cache-32
key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths:
- cache
- run:
Expand Down

0 comments on commit 7bbbb73

Please sign in to comment.