From 2b40fb039463d56fb7203359f2f2a0a85114af5c Mon Sep 17 00:00:00 2001 From: Ozgur Ersoy Date: Tue, 15 Apr 2025 00:34:27 +0200 Subject: [PATCH] fix(actions): add caching for Unreal Engine build artifacts in macOS workflow --- .gitea/workflows/test-macos-build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/test-macos-build.yml b/.gitea/workflows/test-macos-build.yml index f35a0d67..4ca6fd31 100644 --- a/.gitea/workflows/test-macos-build.yml +++ b/.gitea/workflows/test-macos-build.yml @@ -14,6 +14,19 @@ jobs: with: lfs: true fetch-depth: 0 + + # Cache Unreal Engine build artifacts to speed up builds + - name: Cache UE build artifacts + uses: actions/cache@v3 + with: + path: | + ./Intermediate + ./DerivedDataCache + ./Saved/StagedBuilds + key: ${{ runner.os }}-ue-build-${{ hashFiles('LuckyWorld.uproject') }}-${{ hashFiles('Config/**/*.ini') }} + restore-keys: | + ${{ runner.os }}-ue-build-${{ hashFiles('LuckyWorld.uproject') }}- + ${{ runner.os }}-ue-build- # Setup environment for build - name: Setup environment