3 # build on c/cpp changes or workflow changes
15 - '.github/workflows/**.yml'
26 - '.github/workflows/**.yml'
29 # This is our minor gcc compiler
33 - uses: actions/checkout@v2
34 - name: Install compiler
36 sudo apt-get install g++-6 gcc-6 -qyy
37 source ./util/ci/common.sh
44 CMAKE_FLAGS: "-DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6"
48 ./bin/minetest --run-unittests
50 # This is the current gcc compiler (available in bionic)
54 - uses: actions/checkout@v2
55 - name: Install compiler
57 sudo apt-get install g++-8 gcc-8 -qyy
58 source ./util/ci/common.sh
65 CMAKE_FLAGS: "-DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8"
69 ./bin/minetest --run-unittests
71 # This is our minor clang compiler
75 - uses: actions/checkout@v2
76 - name: Install compiler
78 sudo apt-get install clang-3.9 -qyy
79 source ./util/ci/common.sh
86 CMAKE_FLAGS: "-DCMAKE_C_COMPILER=clang-3.9 -DCMAKE_CXX_COMPILER=clang++-3.9"
90 ./bin/minetest --run-unittests
92 # This is the current clang version
96 - uses: actions/checkout@v2
97 - name: Install compiler
99 sudo apt-get install clang-9 valgrind -qyy
100 source ./util/ci/common.sh
109 CMAKE_FLAGS: "-DCMAKE_C_COMPILER=clang-9 -DCMAKE_CXX_COMPILER=clang++-9"
113 ./bin/minetest --run-unittests
117 valgrind --leak-check=full --leak-check-heuristics=all --undef-value-errors=no --error-exitcode=9 ./bin/minetest --run-unittests
121 runs-on: ubuntu-18.04
123 - uses: actions/checkout@v2
124 - name: Install compiler
126 sudo apt-get install clang-9 -qyy
127 source ./util/ci/common.sh
130 - name: Build prometheus-cpp
132 ./util/ci/build_prometheus_cpp.sh
138 CMAKE_FLAGS: "-DCMAKE_C_COMPILER=clang-9 -DCMAKE_CXX_COMPILER=clang++-9 -DENABLE_PROMETHEUS=1"
142 ./bin/minetest --run-unittests
144 # Some builds doesn't require freetype, ensure it compiled properly
146 runs-on: ubuntu-18.04
148 - uses: actions/checkout@v2
149 - name: Install compiler
151 sudo apt-get install clang-9 -qyy
152 source ./util/ci/common.sh
159 CMAKE_FLAGS: "-DCMAKE_C_COMPILER=clang-9 -DCMAKE_CXX_COMPILER=clang++-9 -DENABLE_FREETYPE=0"
163 ./bin/minetest --run-unittests
166 runs-on: ubuntu-18.04
168 - uses: actions/checkout@v2
169 - name: Build docker image
174 runs-on: ubuntu-18.04
176 - uses: actions/checkout@v2
177 - name: Install compiler
179 wget http://minetest.kitsunemimi.pw/mingw-w64-i686_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
180 sudo tar -xaf mingw.tar.xz -C /usr
184 EXISTING_MINETEST_DIR=$PWD ./util/buildbot/buildwin32.sh winbuild
190 runs-on: ubuntu-18.04
192 - uses: actions/checkout@v2
193 - name: Install compiler
195 wget http://minetest.kitsunemimi.pw/mingw-w64-x86_64_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
196 sudo tar -xaf mingw.tar.xz -C /usr
200 EXISTING_MINETEST_DIR=$PWD ./util/buildbot/buildwin64.sh winbuild