File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5555 cd build-test
5656 ctest --verbose --output-on-failure
5757
58+ # Run unittests on GCC compilation
59+ # -----------------------------------------------------------------------------------------------
60+ gcc_unittest :
61+ name : GCC Linux unittests
62+ runs-on : ubuntu-26.04
63+
64+ steps :
65+ - uses : actions/checkout@v6
66+
67+ - name : Install dependencies
68+ uses : Eeems-Org/apt-cache-action@v1.5
69+ with :
70+ packages : cmake cmake-data ninja-build libcunit1-dev
71+ libsdl2-mixer-dev libconfuse-dev libenet-dev libsdl2-dev libxmp-dev libpng-dev
72+ libopusfile-dev libepoxy-dev libminiupnpc-dev libnatpmp-dev gcc
73+
74+ - name : Build tests
75+ run : |
76+ cmake -DCMAKE_C_COMPILER=gcc \
77+ -DUSE_TESTS=On \
78+ -DUSE_TOOLS=On \
79+ -G "Ninja Multi-Config" \
80+ -S . -B build-test
81+ cmake --build build-test -j $(getconf _NPROCESSORS_ONLN)
82+
83+ - name : Run tests
84+ run : |
85+ cd build-test
86+ ctest --verbose --output-on-failure
87+
5888 # Run unittests on a recent version of MSVC
5989 # -----------------------------------------------------------------------------------------------
6090 windows_units :
@@ -117,7 +147,7 @@ jobs:
117147 # Build ubuntu package, release artifact
118148 # -----------------------------------------------------------------------------------------------
119149 build_ubuntu :
120- needs : [unittest, windows_units]
150+ needs : [unittest, gcc_unittest, windows_units]
121151 name : Build ubuntu-26.04
122152 runs-on : ubuntu-26.04
123153 steps :
You can’t perform that action at this time.
0 commit comments