diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a53052e15..e08ba5588 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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