Browse Source

fix(CircleCI): make cache depend on script files

CircleCI caches are immutable once they are written, make them depend on
the script files they are generated from.
reviewable/pr5583/r2
sudden6 6 years ago
parent
commit
7bbbb7377a
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 16
      .circleci/config.yml

16
.circleci/config.yml

@ -18,7 +18,7 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install zip tree sudo apt-get install zip tree
- restore_cache: - restore_cache:
key: dependency-cache-64 key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
- run: - run:
@ -31,7 +31,7 @@ jobs:
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2 ./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2
ls -al cache ls -al cache
- save_cache: - save_cache:
key: dependency-cache-64 key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
release64: release64:
@ -39,7 +39,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-64 key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
- run: - run:
@ -70,7 +70,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-64 key: deps64-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
- run: - run:
@ -111,7 +111,7 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install zip tree sudo apt-get install zip tree
- restore_cache: - restore_cache:
key: dependency-cache-32 key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
- run: - run:
@ -124,7 +124,7 @@ jobs:
./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2 ./.travis/build-windows.sh "$BUILD__" "$BTYPE__" "cache/${BUILD__}" stage2
ls -al cache ls -al cache
- save_cache: - save_cache:
key: dependency-cache-32 key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
release32: release32:
@ -132,7 +132,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-32 key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
- run: - run:
@ -163,7 +163,7 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-32 key: deps32-{{ checksum "windows/cross-compile/build.sh" }}-{{ checksum ".travis/build-windows.sh" }}
paths: paths:
- cache - cache
- run: - run:

Loading…
Cancel
Save