mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12106 from ethereum/fix-circleci-macos-cache-key
Include OS and CPU architecture in CircleCI cache keys
This commit is contained in:
commit
5911fdf6a2
@ -160,6 +160,17 @@ defaults:
|
|||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
|
||||||
|
- steps_restore_cache_homebrew_workaround: &steps_restore_cache_homebrew_workaround
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
# FIXME: For some reason restore_cache fails saying that it cannot remove the scm/ dir.
|
||||||
|
# The directory contains only two files: `git` (wrapper script over git) and `svn` (symlink
|
||||||
|
# to `git`). This looks like a bug in restore_cache. Removing scm/ is a workaround.
|
||||||
|
# See https://github.com/ethereum/solidity/pull/12106 for more details.
|
||||||
|
name: Workaround for restore_cache + /usr/local/Homebrew/Library/Homebrew/shims/scm/
|
||||||
|
command: |
|
||||||
|
rm -r /usr/local/Homebrew/Library/Homebrew/shims/scm/
|
||||||
|
|
||||||
- test_ubuntu1604_clang: &test_ubuntu1604_clang
|
- test_ubuntu1604_clang: &test_ubuntu1604_clang
|
||||||
docker:
|
docker:
|
||||||
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
|
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
|
||||||
@ -625,16 +636,19 @@ jobs:
|
|||||||
MAKEFLAGS: -j 5
|
MAKEFLAGS: -j 5
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- when:
|
||||||
|
condition: true
|
||||||
|
<<: *steps_restore_cache_homebrew_workaround
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- dependencies-osx-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
||||||
# DO NOT EDIT between here and save_cache, but rather edit ./circleci/osx_install_dependencies.sh
|
# DO NOT EDIT between here and save_cache, but rather edit ./circleci/osx_install_dependencies.sh
|
||||||
# WARNING! If you do edit anything here instead, remember to invalidate the cache manually.
|
# WARNING! If you do edit anything here instead, remember to invalidate the cache manually.
|
||||||
- run:
|
- run:
|
||||||
name: Install build dependencies
|
name: Install build dependencies
|
||||||
command: ./.circleci/osx_install_dependencies.sh
|
command: ./.circleci/osx_install_dependencies.sh
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: dependencies-osx-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
key: dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
||||||
paths:
|
paths:
|
||||||
- /usr/local/bin
|
- /usr/local/bin
|
||||||
- /usr/local/sbin
|
- /usr/local/sbin
|
||||||
@ -661,9 +675,12 @@ jobs:
|
|||||||
TERM: xterm
|
TERM: xterm
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- when:
|
||||||
|
condition: true
|
||||||
|
<<: *steps_restore_cache_homebrew_workaround
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- dependencies-osx-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: *run_soltest
|
- run: *run_soltest
|
||||||
@ -677,9 +694,12 @@ jobs:
|
|||||||
TERM: xterm
|
TERM: xterm
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- when:
|
||||||
|
condition: true
|
||||||
|
<<: *steps_restore_cache_homebrew_workaround
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- dependencies-osx-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: *run_cmdline_tests
|
- run: *run_cmdline_tests
|
||||||
@ -886,14 +906,14 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- dependencies-win-{{ checksum "scripts/install_deps.ps1" }}
|
- dependencies-win-{{ arch }}-{{ checksum "scripts/install_deps.ps1" }}
|
||||||
# DO NOT EDIT between here and save_cache, but rather edit .\scripts\install_deps.ps1
|
# DO NOT EDIT between here and save_cache, but rather edit .\scripts\install_deps.ps1
|
||||||
# WARNING! If you do edit anything here instead, remember to invalidate the cache manually.
|
# WARNING! If you do edit anything here instead, remember to invalidate the cache manually.
|
||||||
- run:
|
- run:
|
||||||
name: "Installing dependencies"
|
name: "Installing dependencies"
|
||||||
command: .\scripts\install_deps.ps1
|
command: .\scripts\install_deps.ps1
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: dependencies-win-{{ checksum "scripts/install_deps.ps1" }}
|
key: dependencies-win-{{ arch }}-{{ checksum "scripts/install_deps.ps1" }}
|
||||||
paths:
|
paths:
|
||||||
- .\deps
|
- .\deps
|
||||||
- run:
|
- run:
|
||||||
|
Loading…
Reference in New Issue
Block a user