Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 897b645

Browse files
committed
AppVeyor CI: invalidate LLVM build cache if config changes
1 parent 2f6e51b commit 897b645

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

appveyor.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,27 @@ configuration:
3131
- RelWithDebInfo
3232
environment:
3333
TESTS: On
34-
cache: build/evmjit/llvm
34+
clone_script:
35+
# We have to overwrite the clone script to update submodules before
36+
# the cache invalidation check.
37+
- ps: |
38+
if(-not $env:appveyor_pull_request_number) {
39+
git clone -q --depth 1 --branch=$env:appveyor_repo_branch https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder
40+
git checkout -qf $env:appveyor_repo_commit
41+
git submodule -q update --init --recursive
42+
} else {
43+
git clone -q --depth 1 https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder
44+
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge:
45+
git checkout -qf FETCH_HEAD
46+
git submodule -q update --init --recursive
47+
}
48+
cache: build/evmjit/llvm -> evmjit/cmake/llvm.cmake
3549
#RDP LOGIN details for trouble shooting
3650
#init:
3751
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
3852
#on_finish:
3953
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
4054
install:
41-
- git submodule update --init --recursive
4255
- scripts/install_deps.bat
4356
- set ETHEREUM_DEPS_PATH=%APPVEYOR_BUILD_FOLDER%\deps\install
4457
before_build:

evmjit

0 commit comments

Comments
 (0)