diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-08-21 11:37:58 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-04 00:27:11 +0100 |
commit | a4ee8855c0cc63bd75ac217f092f7516b7ba3643 (patch) | |
tree | 42f0b0c3d0f97102bedecf272a3bcc5e557514ea /.github | |
parent | c6582096ab0d80d67bbbe055468f1ca3e3ab9b2b (diff) |
CI/GitHub: Build on GCC (#25288)
* CI/GitHub: Build on GCC
* Mark warnings as errors
(cherry picked from commit f4dc3cbd65f42f9f144c6718d717ac003fa2edc9)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/gcc-build.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/gcc-build.yml b/.github/workflows/gcc-build.yml new file mode 100644 index 00000000000..d699e0088b3 --- /dev/null +++ b/.github/workflows/gcc-build.yml @@ -0,0 +1,33 @@ +name: GCC + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Dependencies + run: | + sudo apt-get update && sudo apt-get install -yq libboost-all-dev + - name: Setup + run: | + mkdir bin + cd bin + cmake ../ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=dynamic -DSERVERS=1 -DNOJEM=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install -DBUILD_TESTING=1 + cd .. + - name: Build + run: | + cd bin + make -j 4 -k && make install + - name: Unit tests + run: | + cd bin + make test + - name: Check executables + run: | + cd bin/check_install/bin + ./bnetserver --version + ./worldserver --version
\ No newline at end of file |