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

Update build.yaml and Dockerfile.node

This commit is contained in:
Refringe 2024-03-05 12:40:50 -05:00
parent 34e95b090d
commit 36f871d5a8
No known key found for this signature in database
GPG Key ID: DA8524051241DD36
2 changed files with 28 additions and 8 deletions

View File

@ -40,7 +40,7 @@ jobs:
if: needs.check-tag-exists.outputs.proceed == 'true'
runs-on: ubuntu-latest
container:
image: refringe/spt-build-server:0.0.3
image: refringe/spt-build-server:0.0.4
steps:
- name: Clone
run: |
@ -121,11 +121,17 @@ jobs:
tree -C /workspace/refringe/Build/server/project/build
shell: bash
- name: Archive Build
- name: Compress Server Build Folder
run: |
cd /workspace/refringe/Build/server/project/build
7z a -mx=9 -m0=lzma2 ../server-build.7z ./*
echo "Server build folder compressed."
- name: Archive Server Build
uses: actions/upload-artifact@v3
with:
name: server-build
path: /workspace/refringe/Build/server/project/build/
path: /workspace/refringe/Build/server/project/server-build.7z
overwrite: true
build-modules:
@ -205,13 +211,20 @@ jobs:
tree /workspace/refringe/Build/modules/project/Build
shell: bash
- name: Archive Build
- name: Compress Modules Build Folder
run: |
cd /workspace/refringe/Build/modules/project/Build
7z a -mx=9 -m0=lzma2 ../modules-build.7z ./*
echo "Modules build folder compressed."
- name: Archive Modules Build
uses: actions/upload-artifact@v3
with:
name: modules-build
path: /workspace/refringe/Build/modules/project/Build
path: /workspace/refringe/Build/modules/project/modules-build.7z
overwrite: true
build-launcher:
needs: check-tag-exists
if: needs.check-tag-exists.outputs.proceed == 'true'
@ -232,9 +245,15 @@ jobs:
tree /workspace/refringe/Build/launcher/project/Build
shell: bash
- name: Archive Build
- name: Compress Launcher Build Folder
run: |
cd /workspace/refringe/Build/launcher/project/Build
7z a -mx=9 -m0=lzma2 ../launcher-build.7z ./*
echo "Launcher build folder compressed."
- name: Archive Launcher Build
uses: actions/upload-artifact@v3
with:
name: launcher-build
path: /workspace/refringe/Build/launcher/project/Build
path: /workspace/refringe/Build/launcher/project/launcher-build.7z
overwrite: true

View File

@ -5,8 +5,9 @@ FROM node:20.10.0
# - git (duh)
# - git-lfs (duh)
# - zstd (caching action dependancy)
# - p7zip-full (creating archives)
# - tree (pretty print build directory structure)
RUN apt-get update && \
apt-get install -y git git-lfs zstd tree && \
apt-get install -y git git-lfs zstd p7zip-full tree && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*