summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2022-01-31 19:42:24 -0500
committerrubenwardy <rw@rubenwardy.com>2022-04-08 14:55:21 +0100
commit24a0f55c9c84b2625a564fd07d9da75eaac9c60d (patch)
tree36d704d98a7605ffae40e025ea3f88fd1cb058d5 /.gitlab-ci.yml
parentf5e54cd39845aeeff50cdbebf625abf3c4a5b92d (diff)
downloadminetest-24a0f55c9c84b2625a564fd07d9da75eaac9c60d.tar.gz
minetest-24a0f55c9c84b2625a564fd07d9da75eaac9c60d.tar.bz2
minetest-24a0f55c9c84b2625a564fd07d9da75eaac9c60d.zip
Use CMake's -B, --build, and --install options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 04b70737d..81007d7c7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,7 +20,9 @@ variables:
- DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential git cmake libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libleveldb-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev
script:
- git clone https://github.com/minetest/irrlicht -b $IRRLICHT_TAG lib/irrlichtmt
- - make -j$(($(nproc) + 1))
+ - cmake -B build -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
+ - cmake --build build --parallel $(($(nproc) + 1))
+ - cmake --install build
artifacts:
when: on_success
expire_in: 1h