mirror of
https://github.com/minetest/minetest.git
synced 2024-11-26 17:43:45 +01:00
Update Gitlab-CI configuration too
This commit is contained in:
parent
bb1c4badfb
commit
f213376b35
@ -9,16 +9,24 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
IRRLICHT_TAG: "1.9.0mt0"
|
||||||
MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git"
|
MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git"
|
||||||
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
|
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
|
||||||
|
|
||||||
.build_template:
|
.build_template:
|
||||||
stage: build
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt-get update
|
||||||
|
- 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
|
||||||
script:
|
script:
|
||||||
|
- git clone https://github.com/minetest/irrlicht -b $IRRLICHT_TAG
|
||||||
|
- cd irrlicht
|
||||||
|
- cmake . -DBUILD_SHARED_LIBS=OFF
|
||||||
|
- make -j2
|
||||||
|
- cd ..
|
||||||
- mkdir cmakebuild
|
- mkdir cmakebuild
|
||||||
- mkdir -p artifact/minetest/usr/
|
|
||||||
- cd cmakebuild
|
- cd cmakebuild
|
||||||
- cmake -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DENABLE_SYSTEM_JSONCPP=TRUE -DBUILD_SERVER=TRUE ..
|
- cmake -DIRRLICHT_LIBRARY=$PWD/../irrlicht/lib/Linux/libIrrlicht.a -DIRRLICHT_INCLUDE_DIR=$PWD/../irrlicht/include -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
|
||||||
- make -j2
|
- make -j2
|
||||||
- make install
|
- make install
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -30,7 +38,7 @@ variables:
|
|||||||
.debpkg_template:
|
.debpkg_template:
|
||||||
stage: package
|
stage: package
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- apt-get update
|
||||||
- apt-get install -y git
|
- apt-get install -y git
|
||||||
- mkdir -p build/deb/minetest/DEBIAN/
|
- mkdir -p build/deb/minetest/DEBIAN/
|
||||||
- cp misc/debpkg-control build/deb/minetest/DEBIAN/control
|
- cp misc/debpkg-control build/deb/minetest/DEBIAN/control
|
||||||
@ -39,6 +47,7 @@ variables:
|
|||||||
- git clone $MINETEST_GAME_REPO build/deb/minetest/usr/share/minetest/games/minetest_game
|
- git clone $MINETEST_GAME_REPO build/deb/minetest/usr/share/minetest/games/minetest_game
|
||||||
- rm -rf build/deb/minetest/usr/share/minetest/games/minetest/.git
|
- rm -rf build/deb/minetest/usr/share/minetest/games/minetest/.git
|
||||||
- sed -i 's/DATEPLACEHOLDER/'$(date +%y.%m.%d)'/g' build/deb/minetest/DEBIAN/control
|
- sed -i 's/DATEPLACEHOLDER/'$(date +%y.%m.%d)'/g' build/deb/minetest/DEBIAN/control
|
||||||
|
- sed -i 's/JPEG_PLACEHOLDER/'$JPEG_PKG'/g' build/deb/minetest/DEBIAN/control
|
||||||
- sed -i 's/LEVELDB_PLACEHOLDER/'$LEVELDB_PKG'/g' build/deb/minetest/DEBIAN/control
|
- sed -i 's/LEVELDB_PLACEHOLDER/'$LEVELDB_PKG'/g' build/deb/minetest/DEBIAN/control
|
||||||
- cd build/deb/ && dpkg-deb -b minetest/ && mv minetest.deb ../../
|
- cd build/deb/ && dpkg-deb -b minetest/ && mv minetest.deb ../../
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -49,7 +58,7 @@ variables:
|
|||||||
.debpkg_install:
|
.debpkg_install:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- apt-get update
|
||||||
script:
|
script:
|
||||||
- apt-get install -y ./*.deb
|
- apt-get install -y ./*.deb
|
||||||
- minetest --version
|
- minetest --version
|
||||||
@ -63,9 +72,6 @@ variables:
|
|||||||
build:debian-9:
|
build:debian-9:
|
||||||
extends: .build_template
|
extends: .build_template
|
||||||
image: debian:9
|
image: debian:9
|
||||||
before_script:
|
|
||||||
- apt-get update -y
|
|
||||||
- apt-get -y install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
|
|
||||||
|
|
||||||
package:debian-9:
|
package:debian-9:
|
||||||
extends: .debpkg_template
|
extends: .debpkg_template
|
||||||
@ -74,6 +80,7 @@ package:debian-9:
|
|||||||
- build:debian-9
|
- build:debian-9
|
||||||
variables:
|
variables:
|
||||||
LEVELDB_PKG: libleveldb1v5
|
LEVELDB_PKG: libleveldb1v5
|
||||||
|
JPEG_PKG: libjpeg62-turbo
|
||||||
|
|
||||||
deploy:debian-9:
|
deploy:debian-9:
|
||||||
extends: .debpkg_install
|
extends: .debpkg_install
|
||||||
@ -86,9 +93,6 @@ deploy:debian-9:
|
|||||||
build:debian-10:
|
build:debian-10:
|
||||||
extends: .build_template
|
extends: .build_template
|
||||||
image: debian:10
|
image: debian:10
|
||||||
before_script:
|
|
||||||
- apt-get update -y
|
|
||||||
- apt-get -y install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
|
|
||||||
|
|
||||||
package:debian-10:
|
package:debian-10:
|
||||||
extends: .debpkg_template
|
extends: .debpkg_template
|
||||||
@ -97,6 +101,7 @@ package:debian-10:
|
|||||||
- build:debian-10
|
- build:debian-10
|
||||||
variables:
|
variables:
|
||||||
LEVELDB_PKG: libleveldb1d
|
LEVELDB_PKG: libleveldb1d
|
||||||
|
JPEG_PKG: libjpeg62-turbo
|
||||||
|
|
||||||
deploy:debian-10:
|
deploy:debian-10:
|
||||||
extends: .debpkg_install
|
extends: .debpkg_install
|
||||||
@ -113,9 +118,6 @@ deploy:debian-10:
|
|||||||
build:ubuntu-16.04:
|
build:ubuntu-16.04:
|
||||||
extends: .build_template
|
extends: .build_template
|
||||||
image: ubuntu:xenial
|
image: ubuntu:xenial
|
||||||
before_script:
|
|
||||||
- apt-get update -y
|
|
||||||
- apt-get -y install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
|
|
||||||
|
|
||||||
package:ubuntu-16.04:
|
package:ubuntu-16.04:
|
||||||
extends: .debpkg_template
|
extends: .debpkg_template
|
||||||
@ -124,6 +126,7 @@ package:ubuntu-16.04:
|
|||||||
- build:ubuntu-16.04
|
- build:ubuntu-16.04
|
||||||
variables:
|
variables:
|
||||||
LEVELDB_PKG: libleveldb1v5
|
LEVELDB_PKG: libleveldb1v5
|
||||||
|
JPEG_PKG: libjpeg-turbo8
|
||||||
|
|
||||||
deploy:ubuntu-16.04:
|
deploy:ubuntu-16.04:
|
||||||
extends: .debpkg_install
|
extends: .debpkg_install
|
||||||
@ -136,9 +139,6 @@ deploy:ubuntu-16.04:
|
|||||||
build:ubuntu-18.04:
|
build:ubuntu-18.04:
|
||||||
extends: .build_template
|
extends: .build_template
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
before_script:
|
|
||||||
- apt-get update -y
|
|
||||||
- apt-get -y install build-essential libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
|
|
||||||
|
|
||||||
package:ubuntu-18.04:
|
package:ubuntu-18.04:
|
||||||
extends: .debpkg_template
|
extends: .debpkg_template
|
||||||
@ -147,6 +147,7 @@ package:ubuntu-18.04:
|
|||||||
- build:ubuntu-18.04
|
- build:ubuntu-18.04
|
||||||
variables:
|
variables:
|
||||||
LEVELDB_PKG: libleveldb1v5
|
LEVELDB_PKG: libleveldb1v5
|
||||||
|
JPEG_PKG: libjpeg-turbo8
|
||||||
|
|
||||||
deploy:ubuntu-18.04:
|
deploy:ubuntu-18.04:
|
||||||
extends: .debpkg_install
|
extends: .debpkg_install
|
||||||
@ -163,7 +164,7 @@ build:fedora-28:
|
|||||||
extends: .build_template
|
extends: .build_template
|
||||||
image: fedora:28
|
image: fedora:28
|
||||||
before_script:
|
before_script:
|
||||||
- dnf -y install make automake gcc gcc-c++ kernel-devel cmake libcurl-devel openal-soft-devel libvorbis-devel libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel spatialindex-devel
|
- dnf -y install make git gcc gcc-c++ kernel-devel cmake libjpeg-devel libpng-devel libcurl-devel openal-soft-devel libvorbis-devel libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel spatialindex-devel
|
||||||
|
|
||||||
##
|
##
|
||||||
## MinGW for Windows
|
## MinGW for Windows
|
||||||
@ -172,7 +173,7 @@ build:fedora-28:
|
|||||||
.generic_win_template:
|
.generic_win_template:
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- apt-get update
|
||||||
- apt-get install -y wget xz-utils unzip git cmake gettext
|
- apt-get install -y wget xz-utils unzip git cmake gettext
|
||||||
- wget -nv http://minetest.kitsunemimi.pw/mingw-w64-${WIN_ARCH}_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
|
- wget -nv http://minetest.kitsunemimi.pw/mingw-w64-${WIN_ARCH}_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
|
||||||
- tar -xaf mingw.tar.xz -C /usr
|
- tar -xaf mingw.tar.xz -C /usr
|
||||||
@ -183,13 +184,13 @@ build:fedora-28:
|
|||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1h
|
expire_in: 1h
|
||||||
paths:
|
paths:
|
||||||
- build/minetest/_build/*
|
- _build/*
|
||||||
|
|
||||||
.package_win_template:
|
.package_win_template:
|
||||||
extends: .generic_win_template
|
extends: .generic_win_template
|
||||||
stage: package
|
stage: package
|
||||||
script:
|
script:
|
||||||
- unzip build/minetest/_build/minetest-*.zip
|
- unzip _build/minetest-*.zip
|
||||||
- cp -p /usr/${WIN_ARCH}-w64-mingw32/bin/libgcc*.dll minetest-*-win*/bin/
|
- cp -p /usr/${WIN_ARCH}-w64-mingw32/bin/libgcc*.dll minetest-*-win*/bin/
|
||||||
- cp -p /usr/${WIN_ARCH}-w64-mingw32/bin/libstdc++*.dll minetest-*-win*/bin/
|
- cp -p /usr/${WIN_ARCH}-w64-mingw32/bin/libstdc++*.dll minetest-*-win*/bin/
|
||||||
- cp -p /usr/${WIN_ARCH}-w64-mingw32/bin/libwinpthread*.dll minetest-*-win*/bin/
|
- cp -p /usr/${WIN_ARCH}-w64-mingw32/bin/libwinpthread*.dll minetest-*-win*/bin/
|
||||||
@ -201,7 +202,7 @@ build:fedora-28:
|
|||||||
build:win32:
|
build:win32:
|
||||||
extends: .build_win_template
|
extends: .build_win_template
|
||||||
script:
|
script:
|
||||||
- ./util/buildbot/buildwin32.sh build
|
- EXISTING_MINETEST_DIR=$PWD ./util/buildbot/buildwin32.sh build
|
||||||
variables:
|
variables:
|
||||||
WIN_ARCH: "i686"
|
WIN_ARCH: "i686"
|
||||||
|
|
||||||
@ -216,7 +217,7 @@ package:win32:
|
|||||||
build:win64:
|
build:win64:
|
||||||
extends: .build_win_template
|
extends: .build_win_template
|
||||||
script:
|
script:
|
||||||
- ./util/buildbot/buildwin64.sh build
|
- EXISTING_MINETEST_DIR=$PWD ./util/buildbot/buildwin64.sh build
|
||||||
variables:
|
variables:
|
||||||
WIN_ARCH: "x86_64"
|
WIN_ARCH: "x86_64"
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ Section: games
|
|||||||
Priority: extra
|
Priority: extra
|
||||||
Standards-Version: 3.6.2
|
Standards-Version: 3.6.2
|
||||||
Package: minetest-staging
|
Package: minetest-staging
|
||||||
Version: 0.4.15-DATEPLACEHOLDER
|
Version: 5.4.0-DATEPLACEHOLDER
|
||||||
Depends: libc6, libcurl3-gnutls, libfreetype6, libirrlicht1.8, libjsoncpp1, LEVELDB_PLACEHOLDER, liblua5.1-0, libluajit-5.1-2, libopenal1, libsqlite3-0, libstdc++6, libvorbisfile3, libx11-6, zlib1g
|
Depends: libc6, libcurl3-gnutls, libfreetype6, libgl1, JPEG_PLACEHOLDER, libjsoncpp1, LEVELDB_PLACEHOLDER, libopenal1, libpng16-16, libsqlite3-0, libstdc++6, libvorbisfile3, libx11-6, libxxf86vm1, zlib1g
|
||||||
Maintainer: Loic Blot <loic.blot@unix-experience.fr>
|
Maintainer: Loic Blot <loic.blot@unix-experience.fr>
|
||||||
Homepage: https://www.minetest.net/
|
Homepage: https://www.minetest.net/
|
||||||
Vcs-Git: https://github.com/minetest/minetest.git
|
Vcs-Git: https://github.com/minetest/minetest.git
|
||||||
@ -12,15 +12,12 @@ Architecture: amd64
|
|||||||
Build-Depends:
|
Build-Depends:
|
||||||
cmake,
|
cmake,
|
||||||
gettext,
|
gettext,
|
||||||
libbz2-dev,
|
|
||||||
libcurl4-gnutls-dev,
|
libcurl4-gnutls-dev,
|
||||||
libfreetype6-dev,
|
libfreetype6-dev,
|
||||||
libglu1-mesa-dev,
|
libgl1-mesa-dev,
|
||||||
libirrlicht-dev (>= 1.7.0),
|
|
||||||
libjpeg-dev,
|
libjpeg-dev,
|
||||||
libjsoncpp-dev,
|
libjsoncpp-dev,
|
||||||
libleveldb-dev,
|
libleveldb-dev,
|
||||||
libluajit-5.1-dev | liblua5.1-dev,
|
|
||||||
libogg-dev,
|
libogg-dev,
|
||||||
libopenal-dev,
|
libopenal-dev,
|
||||||
libpng-dev,
|
libpng-dev,
|
||||||
@ -28,7 +25,7 @@ Build-Depends:
|
|||||||
libvorbis-dev,
|
libvorbis-dev,
|
||||||
libx11-dev,
|
libx11-dev,
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
Description: Multiplayer infinite-world block sandbox (server)
|
Description: Multiplayer infinite-world block sandbox game
|
||||||
Minetest is a minecraft-inspired game written from scratch and licensed
|
Minetest is a minecraft-inspired game written from scratch and licensed
|
||||||
under the LGPL (version 2.1 or later). It supports both survival and creative
|
under the LGPL (version 2.1 or later). It supports both survival and creative
|
||||||
modes along with multiplayer support, dynamic lighting, and an "infinite" map
|
modes along with multiplayer support, dynamic lighting, and an "infinite" map
|
||||||
|
Loading…
Reference in New Issue
Block a user