From c56adcb8c5fe1614f243da1416ee58504ffc81bc Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 4 Dec 2023 16:11:18 +0100 Subject: [PATCH] take source dir from cli args --- .github/workflows/build-linux.yml | 2 +- scripts/debian/2-configure.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 7fdd17a..0ea7d3a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -18,7 +18,7 @@ jobs: - name: Create Build Environment working-directory: ${{github.workspace}}/build-linux - run: bash ${{github.workspace}}/scripts/debian/2-configure.sh + run: bash ${{github.workspace}}/scripts/debian/2-configure.sh .. - name: Build Server working-directory: ${{github.workspace}}/build-linux diff --git a/scripts/debian/2-configure.sh b/scripts/debian/2-configure.sh index 4936f45..7005284 100755 --- a/scripts/debian/2-configure.sh +++ b/scripts/debian/2-configure.sh @@ -2,4 +2,4 @@ set -ex -cmake . -B bin -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -s -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON || cat "$SOURCE"/server/bin/vcpkg-bootstrap.log +cmake ${1-:.} -B bin -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -s -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON || cat "$SOURCE"/server/bin/vcpkg-bootstrap.log