forked from Mirrorlandia_minetest/minetest
Move some CI jobs to newer compiler versions
This commit is contained in:
parent
d1cbb4bd8a
commit
c7059c4981
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@ -52,21 +52,21 @@ jobs:
|
|||||||
./bin/minetest --run-unittests
|
./bin/minetest --run-unittests
|
||||||
|
|
||||||
# Current gcc version
|
# Current gcc version
|
||||||
gcc_10:
|
gcc_12:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
source ./util/ci/common.sh
|
source ./util/ci/common.sh
|
||||||
install_linux_deps g++-10
|
install_linux_deps g++-12 libluajit-5.1-dev
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./util/ci/build.sh
|
./util/ci/build.sh
|
||||||
env:
|
env:
|
||||||
CC: gcc-10
|
CC: gcc-12
|
||||||
CXX: g++-10
|
CXX: g++-12
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
@ -80,7 +80,7 @@ jobs:
|
|||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
source ./util/ci/common.sh
|
source ./util/ci/common.sh
|
||||||
install_linux_deps clang-3.9 gdb
|
install_linux_deps clang-3.9 valgrind
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -93,35 +93,34 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./bin/minetest --run-unittests
|
./bin/minetest --run-unittests
|
||||||
|
|
||||||
- name: Integration test + devtest
|
- name: Valgrind
|
||||||
run: |
|
run: |
|
||||||
./util/test_multiplayer.sh
|
valgrind --leak-check=full --leak-check-heuristics=all --undef-value-errors=no --error-exitcode=9 ./bin/minetest --run-unittests
|
||||||
|
|
||||||
# Current clang version
|
# Current clang version
|
||||||
clang_10:
|
clang_14:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
source ./util/ci/common.sh
|
source ./util/ci/common.sh
|
||||||
install_linux_deps clang-10 valgrind libluajit-5.1-dev
|
install_linux_deps clang-14 gdb
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./util/ci/build.sh
|
./util/ci/build.sh
|
||||||
env:
|
env:
|
||||||
CC: clang-10
|
CC: clang-14
|
||||||
CXX: clang++-10
|
CXX: clang++-14
|
||||||
CMAKE_FLAGS: "-DREQUIRE_LUAJIT=1"
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
./bin/minetest --run-unittests
|
./bin/minetest --run-unittests
|
||||||
|
|
||||||
- name: Valgrind
|
- name: Integration test + devtest
|
||||||
run: |
|
run: |
|
||||||
valgrind --leak-check=full --leak-check-heuristics=all --undef-value-errors=no --error-exitcode=9 ./bin/minetest --run-unittests
|
./util/test_multiplayer.sh
|
||||||
|
|
||||||
# Build with prometheus-cpp (server-only)
|
# Build with prometheus-cpp (server-only)
|
||||||
clang_9_prometheus:
|
clang_9_prometheus:
|
||||||
|
12
.github/workflows/macos.yml
vendored
12
.github/workflows/macos.yml
vendored
@ -28,16 +28,13 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
pkgs=(cmake freetype gettext gmp hiredis jpeg jsoncpp leveldb libogg libpng libvorbis luajit zstd)
|
source ./util/ci/common.sh
|
||||||
brew update
|
install_macos_deps
|
||||||
brew install ${pkgs[@]}
|
|
||||||
brew unlink $(brew ls --formula)
|
|
||||||
brew link ${pkgs[@]}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -49,8 +46,7 @@ jobs:
|
|||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
||||||
-DCMAKE_FIND_FRAMEWORK=LAST \
|
-DCMAKE_FIND_FRAMEWORK=LAST \
|
||||||
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
|
-DCMAKE_INSTALL_PREFIX=../build/macos/ \
|
||||||
-DRUN_IN_PLACE=FALSE \
|
-DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE
|
||||||
-DENABLE_FREETYPE=TRUE -DENABLE_GETTEXT=TRUE
|
|
||||||
make -j2
|
make -j2
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
# Linux build only
|
# Linux build only
|
||||||
install_linux_deps() {
|
install_linux_deps() {
|
||||||
local pkgs=(cmake libpng-dev \
|
local pkgs=(
|
||||||
libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
|
cmake gettext
|
||||||
libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev \
|
libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev
|
||||||
gettext libpq-dev libleveldb-dev libcurl4-openssl-dev libzstd-dev)
|
libsqlite3-dev libhiredis-dev libogg-dev libgmp-dev libvorbis-dev
|
||||||
|
libopenal-dev libpq-dev libleveldb-dev libcurl4-openssl-dev libzstd-dev
|
||||||
|
)
|
||||||
|
|
||||||
if [[ "$1" == "--no-irr" ]]; then
|
if [[ "$1" == "--no-irr" ]]; then
|
||||||
shift
|
shift
|
||||||
@ -16,17 +18,17 @@ install_linux_deps() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends ${pkgs[@]} "$@"
|
sudo apt-get install -y --no-install-recommends "${pkgs[@]}" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Mac OSX build only
|
# macOS build only
|
||||||
install_macosx_deps() {
|
install_macos_deps() {
|
||||||
|
local pkgs=(
|
||||||
|
cmake gettext freetype gmp jpeg-turbo jsoncpp leveldb
|
||||||
|
libogg libpng libvorbis luajit zstd
|
||||||
|
)
|
||||||
brew update
|
brew update
|
||||||
brew install freetype gettext hiredis irrlicht leveldb libogg libvorbis luajit
|
brew install "${pkgs[@]}"
|
||||||
if brew ls | grep -q jpeg; then
|
brew unlink $(brew ls --formula)
|
||||||
brew upgrade jpeg
|
brew link "${pkgs[@]}"
|
||||||
else
|
|
||||||
brew install jpeg
|
|
||||||
fi
|
|
||||||
#brew upgrade postgresql
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user