mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 12:42:26 +00:00
Restore build flags and add ccache
Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
parent
44a044684f
commit
f863c73339
17
.github/workflows/build.yaml
vendored
17
.github/workflows/build.yaml
vendored
@ -18,7 +18,6 @@ jobs:
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Mark workspace safe
|
||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
@ -27,7 +26,7 @@ jobs:
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
mkdir -p build && cd build
|
||||
cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||
cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DEQEMU_BUILD_PERL=ON -DEQEMU_BUILD_CLIENT_FILES=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
|
||||
make -j"$(nproc)"
|
||||
|
||||
- name: Test
|
||||
@ -53,12 +52,14 @@ jobs:
|
||||
run: |
|
||||
mkdir -p /tmp/bin
|
||||
tar -xzf eqemu-linux-bins.tgz -C /tmp/bin
|
||||
missing_libs="$(ldd /tmp/bin/world | grep "not found" || true)"
|
||||
if [ -n "$missing_libs" ]; then
|
||||
echo "Missing shared libraries:"
|
||||
echo "$missing_libs"
|
||||
exit 1
|
||||
fi
|
||||
for bin in world zone ucs loginserver queryserv shared_memory eqlaunch; do
|
||||
missing_libs="$(ldd "/tmp/bin/${bin}" | grep "not found" || true)"
|
||||
if [ -n "$missing_libs" ]; then
|
||||
echo "Missing shared libraries for ${bin}:"
|
||||
echo "$missing_libs"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
/tmp/bin/world --help || { echo "'world --help' failed"; exit 1; }
|
||||
|
||||
- name: Upload linux binaries
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user