From 2de14f4e38bd885d781d0fb99d012772824ad277 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 27 Sep 2024 16:12:42 +0200 Subject: [PATCH] Patching CPM checkouts is broken without a cache. https://github.com/cpm-cmake/CPM.cmake/issues/577 --- .github/workflows/build.yml | 3 +++ .github/workflows/emscripten.yml | 3 +++ .github/workflows/linux.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c38415f1..780cfb4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ master ] +env: + CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache + jobs: build: strategy: diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 0fe66b70..9bba0006 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ master ] +env: + CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index ad433dc7..729df316 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ master ] +env: + CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache + jobs: build: runs-on: ubuntu-latest