0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 16:50:45 -05:00

Cache server build by current git short hash

This commit is contained in:
Refringe 2024-03-28 20:13:06 -04:00
parent 3bce902220
commit fa409d1e0b
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED

View File

@ -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 }}"