From fa409d1e0b50d70544089138a5423cc48c45d243 Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 28 Mar 2024 20:13:06 -0400 Subject: [PATCH] Cache server build by current git short hash --- .gitea/workflows/build.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 5c93777..cd15b96 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -265,7 +265,18 @@ jobs: npm install shell: bash + - name: Cache Server Build + id: cache-server-build + uses: actions/cache@v4 + with: + path: | + /workspace/SPT-AKI/Build/server/project/build + key: server-build-${{ steps.clone.output.server_commit }} + restore-keys: | + server-build- + - name: Build Server + if: steps.cache-server-build.outputs.cache-hit != 'true' run: | cd /workspace/SPT-AKI/Build/server/project BUILD_TYPE="${{ needs.prepare.outputs.build_type }}"