mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 06:50:45 -05:00
Update build.yaml script paths
This commit is contained in:
parent
2ff4667278
commit
46f4571d0b
@ -44,17 +44,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
run: |
|
run: |
|
||||||
rm -rf ./server
|
rm -rf /workspace/refringe/Build/server
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE-Test --depth 1 ./server
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch 3.8.0-BE-Test --depth 1 /workspace/refringe/Build/server
|
||||||
|
|
||||||
- name: Pull LFS Files
|
- name: Pull LFS Files
|
||||||
run: |
|
run: |
|
||||||
cd ./server
|
cd /workspace/refringe/Build/server
|
||||||
git lfs pull && git lfs ls-files
|
git lfs pull && git lfs ls-files
|
||||||
|
|
||||||
- name: Runner Debug Information
|
- name: Runner Debug Information
|
||||||
run: |
|
run: |
|
||||||
cd ./server
|
cd /workspace/refringe/Build/server
|
||||||
echo "Git version: $(git --version)"
|
echo "Git version: $(git --version)"
|
||||||
echo "Git LFS version: $(git-lfs --version)"
|
echo "Git LFS version: $(git-lfs --version)"
|
||||||
echo "Node.js version: $(node --version)"
|
echo "Node.js version: $(node --version)"
|
||||||
@ -66,7 +66,7 @@ jobs:
|
|||||||
- name: Cache Keys
|
- name: Cache Keys
|
||||||
id: cache-keys
|
id: cache-keys
|
||||||
run: |
|
run: |
|
||||||
cd ./server
|
cd /workspace/refringe/Build/server
|
||||||
echo "::set-output name=commit_hash::$(git rev-parse HEAD)"
|
echo "::set-output name=commit_hash::$(git rev-parse HEAD)"
|
||||||
TAGS=$(git tag --contains HEAD || echo "no-tag")
|
TAGS=$(git tag --contains HEAD || echo "no-tag")
|
||||||
if [ -z "$TAGS" ]; then
|
if [ -z "$TAGS" ]; then
|
||||||
@ -97,7 +97,7 @@ jobs:
|
|||||||
id: build-cache
|
id: build-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ./server/project/build
|
path: /workspace/refringe/Build/server/project/build
|
||||||
key: build-${{ steps.cache-keys.outputs.commit_hash }}-${{ steps.cache-keys.outputs.tags }}-${{ steps.build-type.outputs.build_type }}
|
key: build-${{ steps.cache-keys.outputs.commit_hash }}-${{ steps.cache-keys.outputs.tags }}-${{ steps.build-type.outputs.build_type }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-${{ steps.cache-keys.outputs.commit_hash }}-${{ steps.cache-keys.outputs.tags }}-
|
build-${{ steps.cache-keys.outputs.commit_hash }}-${{ steps.cache-keys.outputs.tags }}-
|
||||||
@ -107,25 +107,23 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd ./server/project
|
cd /workspace/refringe/Build/server/project
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
- name: Build Server
|
- name: Build Server
|
||||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd ./server/project
|
cd /workspace/refringe/Build/server/project
|
||||||
BUILD_TYPE="${{ steps.build-type.outputs.build_type }}"
|
BUILD_TYPE="${{ steps.build-type.outputs.build_type }}"
|
||||||
echo "Running build for $BUILD_TYPE"
|
echo "Running build for $BUILD_TYPE"
|
||||||
npm run build:$BUILD_TYPE
|
npm run build:$BUILD_TYPE
|
||||||
echo "Built..."
|
tree -C /workspace/refringe/Build/server/project/build
|
||||||
cd ./server/project/build
|
|
||||||
tree -C
|
|
||||||
|
|
||||||
- name: Archive Build
|
- name: Archive Build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: server-build
|
name: server-build
|
||||||
path: ./server/project/build/
|
path: /workspace/refringe/Build/server/project/build/
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
build-modules:
|
build-modules:
|
||||||
@ -137,14 +135,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
run: |
|
run: |
|
||||||
rm -rf ./modules
|
rm -rf /workspace/refringe/Build/modules
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Modules.git --branch 3.8.0-BE-Test --depth 1 ./modules
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Modules.git --branch 3.8.0-BE-Test --depth 1 /workspace/refringe/Build/modules
|
||||||
|
|
||||||
- name: Fetch Server Core Config
|
- name: Fetch Server Core Config
|
||||||
run: |
|
run: |
|
||||||
rm -rf ./server-core
|
rm -rf /workspace/refringe/Build/server-core
|
||||||
git init ./server-core
|
git init /workspace/refringe/Build/server-core
|
||||||
cd ./server-core
|
cd /workspace/refringe/Build/server-core
|
||||||
git remote add origin https://dev.sp-tarkov.com/SPT-AKI/Server.git
|
git remote add origin https://dev.sp-tarkov.com/SPT-AKI/Server.git
|
||||||
git config core.sparseCheckout true
|
git config core.sparseCheckout true
|
||||||
echo "project/assets/configs/core.json" >> .git/info/sparse-checkout
|
echo "project/assets/configs/core.json" >> .git/info/sparse-checkout
|
||||||
@ -156,7 +154,7 @@ jobs:
|
|||||||
- name: Extract Client Version
|
- name: Extract Client Version
|
||||||
id: extract-client-version
|
id: extract-client-version
|
||||||
run: |
|
run: |
|
||||||
cd ./server-core/project/assets/configs
|
cd /workspace/refringe/Build/server-core/project/assets/configs
|
||||||
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
||||||
CLIENT_VERSION=${FULL_VERSION##*.}
|
CLIENT_VERSION=${FULL_VERSION##*.}
|
||||||
echo "Extracted Client Version: $CLIENT_VERSION"
|
echo "Extracted Client Version: $CLIENT_VERSION"
|
||||||
@ -165,7 +163,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Download Client Module Package
|
- name: Download Client Module Package
|
||||||
run: |
|
run: |
|
||||||
DIR_MANAGED="./modules/project/Shared/Managed"
|
DIR_MANAGED="/workspace/refringe/Build/modules/project/Shared/Managed"
|
||||||
DOWNLOAD_PATH="$DIR_MANAGED/${{ steps.extract-client-version.outputs.client_version }}.zip"
|
DOWNLOAD_PATH="$DIR_MANAGED/${{ steps.extract-client-version.outputs.client_version }}.zip"
|
||||||
DOWNLOAD_URL="$MODULE_DOMAIN/${{ steps.extract-client-version.outputs.client_version }}.zip"
|
DOWNLOAD_URL="$MODULE_DOMAIN/${{ steps.extract-client-version.outputs.client_version }}.zip"
|
||||||
echo "Downloading Client Module Package from $DOWNLOAD_URL to $DOWNLOAD_PATH"
|
echo "Downloading Client Module Package from $DOWNLOAD_URL to $DOWNLOAD_PATH"
|
||||||
@ -185,32 +183,30 @@ jobs:
|
|||||||
|
|
||||||
- name: Decompress Client Module Package
|
- name: Decompress Client Module Package
|
||||||
run: |
|
run: |
|
||||||
cd ./modules/project/Shared/Managed
|
cd /workspace/refringe/Build/modules/project/Shared/Managed
|
||||||
7z x ${{ steps.extract-client-version.outputs.client_version }}.zip -aoa
|
7z x ${{ steps.extract-client-version.outputs.client_version }}.zip -aoa
|
||||||
echo "Client module package decompressed."
|
echo "Client module package decompressed."
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Delete Client Module Package
|
- name: Delete Client Module Package
|
||||||
run: |
|
run: |
|
||||||
cd ./modules/project/Shared/Managed
|
cd /workspace/refringe/Build/modules/project/Shared/Managed
|
||||||
rm -f ${{ steps.extract-client-version.outputs.client_version }}.zip
|
rm -f ${{ steps.extract-client-version.outputs.client_version }}.zip
|
||||||
echo "Client module package deleted."
|
echo "Client module package deleted."
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Build Modules
|
- name: Build Modules
|
||||||
run: |
|
run: |
|
||||||
cd ./modules/project
|
cd /workspace/refringe/Build/modules/project
|
||||||
dotnet build
|
dotnet build
|
||||||
echo "Built..."
|
tree /workspace/refringe/Build/modules/project/Build
|
||||||
cd ./modules/project/Build
|
|
||||||
tree -C
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Archive Build
|
- name: Archive Build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: modules-build
|
name: modules-build
|
||||||
path: ./modules/project/Build
|
path: /workspace/refringe/Build/modules/project/Build
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
build-launcher:
|
build-launcher:
|
||||||
@ -222,5 +218,5 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
run: |
|
run: |
|
||||||
rm -rf ./launcher
|
rm -rf /workspace/refringe/Build/launcher
|
||||||
git clone https://dev.sp-tarkov.com/SPT-AKI/Launcher.git --branch 3.8.0-BE-Test --depth 1 ./launcher
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Launcher.git --branch 3.8.0-BE-Test --depth 1 /workspace/refringe/Build/launcher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user