From 7e68980c395339b1e9b78c08477d47b7ba15354d Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 10 Nov 2021 18:00:57 +0100 Subject: [PATCH] ci: improve caching for GitHub Actions Previously the cache would be stale for every new branch. With this change, PRs use the cache from the base branch and therefore don't need to rebuild LLVM from scratch. --- .github/workflows/windows.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7dc5adad0..bdb27dca0 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,6 +1,11 @@ name: Windows -on: push +on: + pull_request: + push: + branches: + - dev + - release jobs: build-windows: