Restore build flags and add ccache

Co-authored-by: Valorith <76063792+Valorith@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 23:51:50 +00:00
parent 44a044684f
commit f863c73339
+9 -8
View File
@@ -18,7 +18,6 @@ jobs:
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0
- name: Mark workspace safe - name: Mark workspace safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
@@ -27,7 +26,7 @@ jobs:
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: | run: |
mkdir -p build && cd build 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)" make -j"$(nproc)"
- name: Test - name: Test
@@ -53,12 +52,14 @@ jobs:
run: | run: |
mkdir -p /tmp/bin mkdir -p /tmp/bin
tar -xzf eqemu-linux-bins.tgz -C /tmp/bin tar -xzf eqemu-linux-bins.tgz -C /tmp/bin
missing_libs="$(ldd /tmp/bin/world | grep "not found" || true)" for bin in world zone ucs loginserver queryserv shared_memory eqlaunch; do
if [ -n "$missing_libs" ]; then missing_libs="$(ldd "/tmp/bin/${bin}" | grep "not found" || true)"
echo "Missing shared libraries:" if [ -n "$missing_libs" ]; then
echo "$missing_libs" echo "Missing shared libraries for ${bin}:"
exit 1 echo "$missing_libs"
fi exit 1
fi
done
/tmp/bin/world --help || { echo "'world --help' failed"; exit 1; } /tmp/bin/world --help || { echo "'world --help' failed"; exit 1; }
- name: Upload linux binaries - name: Upload linux binaries