From 9d02231074e23c110babf03c5fab18f81c926c52 Mon Sep 17 00:00:00 2001 From: ZeeWanderer Date: Tue, 26 May 2020 02:33:59 +0300 Subject: [PATCH] [CI, Cache] Add proper cache versioning (#8285) --- .ci/get_keys-windows.sh | 4 ++++ azure-pipelines.yml | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .ci/get_keys-windows.sh diff --git a/.ci/get_keys-windows.sh b/.ci/get_keys-windows.sh new file mode 100644 index 0000000000..1f6efc379c --- /dev/null +++ b/.ci/get_keys-windows.sh @@ -0,0 +1,4 @@ +#!/bin/sh -ex + +curl -L -o "./llvm.lock" "https://github.com/RPCS3/llvm-mirror/releases/download/custom-build-win/llvmlibs_mt.7z.sha256" +curl -L -o "./glslang.lock" "https://github.com/RPCS3/glslang/releases/download/custom-build-win/glslanglibs_mt.7z.sha256" diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 104ea0e179..06b5863151 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,10 +59,15 @@ jobs: vmImage: "windows-latest" steps: + - bash: .ci/get_keys-windows.sh + displayName: Get Cache Keys + - task: Cache@2 inputs: - key: $(Agent.OS) | $(COMPILER) + key: $(Agent.OS) | $(COMPILER) | "$(QT_VER)" | $(VULKAN_SDK_SHA) | llvm.lock | glslang.lock path: $(CACHE_DIR) + restoreKeys: | + $(Agent.OS) | $(COMPILER) displayName: Cache - bash: .ci/setup-windows.sh