2024-02-29 21:44:53 -05:00
|
|
|
name: SPT Release Build
|
2024-02-29 21:25:58 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2024-03-01 16:35:27 -05:00
|
|
|
Build Server:
|
2024-02-29 21:25:58 -05:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-01 11:12:38 -05:00
|
|
|
container:
|
2024-03-01 17:02:33 -05:00
|
|
|
image: refringe/spt-build-environment:1.0.5
|
2024-02-29 21:25:58 -05:00
|
|
|
|
|
|
|
steps:
|
2024-03-01 16:35:27 -05:00
|
|
|
- name: Server Cache
|
|
|
|
id: server-cache
|
|
|
|
uses: actions/cache@v4
|
2024-03-01 16:29:25 -05:00
|
|
|
with:
|
2024-03-01 17:36:40 -05:00
|
|
|
path: /workspace/refringe/Build/server
|
2024-03-01 16:35:27 -05:00
|
|
|
key: server-${{ gitea.sha }}
|
|
|
|
restore-keys: server-
|
2024-03-01 13:19:08 -05:00
|
|
|
|
2024-03-01 16:35:27 -05:00
|
|
|
- name: Clone Server
|
2024-03-01 17:36:40 -05:00
|
|
|
if: steps.server-cache.outputs.cache-hit != 'true'
|
|
|
|
run: git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE --depth 1 /workspace/refringe/Build/server
|
2024-03-01 16:29:25 -05:00
|
|
|
|
2024-03-01 16:35:27 -05:00
|
|
|
- name: Pull Server LFS Files
|
2024-03-01 17:36:40 -05:00
|
|
|
if: steps.server-cache.outputs.cache-hit != 'true'
|
2024-03-01 16:35:27 -05:00
|
|
|
run: |
|
2024-03-01 17:36:40 -05:00
|
|
|
cd /workspace/refringe/Build/server
|
2024-03-01 16:35:27 -05:00
|
|
|
git lfs pull && git lfs ls-files
|