[CI] Build static linux binaries (#3419)

* [CI] Build static linux binaries

* Fix tests

* Update linux-build.sh
This commit is contained in:
Chris Miles 2023-06-18 15:19:25 -05:00 committed by GitHub
parent fff3e77a6e
commit 2a176835b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

6
tests/cppunit/config.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef EQEMU_CONFIG_H
#define EQEMU_CONFIG_H
// no-op
#endif //EQEMU_CONFIG_H

View File

@ -9,11 +9,13 @@ git submodule init && git submodule update
perl utils/scripts/build/tag-version.pl
mkdir -p build && cd build && cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-Os" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
mkdir -p build && cd build && cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_STATIC=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-Os" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
curl https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/eqemu_config.json --output eqemu_config.json
./bin/tests
ldd ./bin/zone
# shellcheck disable=SC2164
cd /drone/src/