summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-10-17 08:43:02 -0500
committerBe <be@mixxx.org>2021-10-19 12:22:58 -0500
commit914b14c13ae8d8ca172d9342ccd261d36729a2e7 (patch)
treeaae7cf5d0b8e0619cce4c464a3a8b334055753d8 /.github/workflows/build.yml
parentdddcf064d62cdbb32b15a08dbfee0983f601e065 (diff)
GH Actions: lower compiler cache size to 0.5 GB
Hopefully this will result in less frequent cache misses.
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5f4ed3955f..904e41b3dd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -199,8 +199,12 @@ jobs:
BUILDENV_BASEPATH: ${{ matrix.buildenv_basepath }}
- name: "[Ubuntu/macOS] Set compiler cache size limit"
- # Set size to 2 GiB
- run: ${{ matrix.compiler_cache }} -M 2097152
+ # A full build without a cache fills the cache with about 300 MB.
+ # GitHub Actions gives us 5 GB of cache for free.
+ # 3 operating systems * 2 conditions (Qt5 & Qt6) * 512 MB = 3 GB
+ # We use a new cache key for every job, so we would run out of
+ # space frequently if the cache was much bigger.
+ run: ${{ matrix.compiler_cache }} -M 524288
if: runner.os != 'windows'
- name: "Set up compiler cache"