Fix gitlab ci build step on stable 5.2/5.2-namespase: try 1
* ajust the packages need for build dependencies * ajust the build parameters for cmake CI build * remove the packaging and deploy stages * use only for build checks, gitlab ci are not complety free * remove packaging we use OBS, add feladora 37, 36, remove olders * this commit forwardport those: fix being stuck at tzdata 22d915301695f4d34729369ee1edcd2631e6d792 add feladora 37, 36, remove 24 5835777690c1b5dfe673ae25e81552c68c6afaaf Fix sourceslit on older distros a0f578e8af5fd5f130be6acbb6923f16f145f36b Fix feladora libcurl dependencies 240bad96f75447769b65191c7b1b5ac026ba266f
This commit is contained in:
parent
d75ca63de4
commit
a1fa6f09dd
351
.gitlab-ci.yml
351
.gitlab-ci.yml
@ -1,16 +1,12 @@
|
|||||||
---
|
---
|
||||||
# Github repository is cloned every day on Gitlab.com
|
# Github repository is really at minetest.org using the poikilos git.minetest.io
|
||||||
# https://gitlab.com/minetest/minetest
|
# https://gitlab.com/minenux/minetest-engine-minetest
|
||||||
# Pipelines URL: https://gitlab.com/minetest/minetest/pipelines
|
# Pipelines URL: https://gitlab.com/minenux/minetest-engine-minetest/pipelines
|
||||||
|
# packages moved to https://build.opensuse.org/project/show/home:venenux:minenux
|
||||||
|
# in future we only build here, or made apk packs for alpine
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- package
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
variables:
|
|
||||||
MINETEST_GAME_REPO: "https://github.com/minetest/minetest_game.git"
|
|
||||||
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
|
|
||||||
|
|
||||||
.build_template: &build_definition
|
.build_template: &build_definition
|
||||||
stage: build
|
stage: build
|
||||||
@ -18,45 +14,17 @@ variables:
|
|||||||
- mkdir cmakebuild
|
- mkdir cmakebuild
|
||||||
- mkdir -p artifact/minetest/usr/
|
- 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 -DBUILD_SERVER=TRUE ..
|
- cmake -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DBUILD_SERVER=ON -DBUILD_CLIENT=ON -DRUN_IN_PLACE=OFF -DENABLE_CURL=ON -DENABLE_SOUND=ON -DENABLE_LUAJIT=ON -DENABLE_GETTEXT=ON -DENABLE_FREETYPE=ON -DENABLE_SYSTEM_GMP=ON -DENABLE_SYSTEM_JSONCPP=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||||
- make -j2
|
- make -j$(nproc)
|
||||||
- make install
|
- make install
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_success
|
when: on_success
|
||||||
expire_in: 2h
|
expire_in: 1h
|
||||||
paths:
|
paths:
|
||||||
- artifact/*
|
- artifact/*
|
||||||
|
|
||||||
.debpkg_template: &debpkg_template
|
|
||||||
stage: package
|
|
||||||
before_script:
|
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y git
|
|
||||||
- mkdir -p build/deb/minetest/DEBIAN/
|
|
||||||
- cp misc/debpkg-control build/deb/minetest/DEBIAN/control
|
|
||||||
- cp -Rp artifact/minetest/usr build/deb/minetest/
|
|
||||||
script:
|
|
||||||
- git clone $MINETEST_GAME_REPO build/deb/minetest/usr/share/minetest/games/minetest
|
|
||||||
- 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/LEVELDB_PLACEHOLDER/'$LEVELDB_PKG'/g' build/deb/minetest/DEBIAN/control
|
|
||||||
- cd build/deb/ && dpkg-deb -b minetest/ && mv minetest.deb ../../
|
|
||||||
artifacts:
|
|
||||||
when: on_success
|
|
||||||
expire_in: 90 day
|
|
||||||
paths:
|
|
||||||
- ./*.deb
|
|
||||||
|
|
||||||
.debpkg_install: &debpkg_install
|
|
||||||
stage: deploy
|
|
||||||
before_script:
|
|
||||||
- apt-get update -y
|
|
||||||
- apt-get install -y libc6 libcurl3-gnutls libfreetype6 libirrlicht1.8 $LEVELDB_PKG liblua5.1-0 libluajit-5.1-2 libopenal1 libstdc++6 libvorbisfile3 libx11-6 zlib1g
|
|
||||||
script:
|
|
||||||
- dpkg -i ./*.deb
|
|
||||||
|
|
||||||
##
|
##
|
||||||
## Debian
|
## Debian mother of many distros
|
||||||
##
|
##
|
||||||
|
|
||||||
# Jessie
|
# Jessie
|
||||||
@ -65,29 +33,12 @@ build:debian-8:
|
|||||||
<<: *build_definition
|
<<: *build_definition
|
||||||
image: debian:8
|
image: debian:8
|
||||||
before_script:
|
before_script:
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" > /etc/apt/sources.list.d/uptodate-toolchain.list
|
- echo "" > /etc/apt/apt.conf.d/50venenuxcustom
|
||||||
- apt-key adv --keyserver keyserver.ubuntu.com --recv BA9EF27F
|
- echo "APT::Get::AllowUnauthenticated \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom
|
||||||
- apt-get update -y
|
- echo "Acquire::AllowInsecureRepositories \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom
|
||||||
- apt-get -y install build-essential gcc-6 g++-6 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
|
- rm -rf /etc/apt/sources.list
|
||||||
variables:
|
- apt-get update -y || true
|
||||||
CC: gcc-6
|
- apt-get -y --force-yes install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev x11proto-xf86vidmode-dev
|
||||||
CXX: g++-6
|
|
||||||
|
|
||||||
package:debian-8:
|
|
||||||
image: debian:8
|
|
||||||
dependencies:
|
|
||||||
- build:debian-8
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1
|
|
||||||
<<: *debpkg_template
|
|
||||||
|
|
||||||
deploy:debian-8:
|
|
||||||
image: debian:8
|
|
||||||
dependencies:
|
|
||||||
- package:debian-8
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1
|
|
||||||
<<: *debpkg_install
|
|
||||||
|
|
||||||
# Stretch
|
# Stretch
|
||||||
|
|
||||||
@ -95,246 +46,74 @@ build:debian-9:
|
|||||||
<<: *build_definition
|
<<: *build_definition
|
||||||
image: debian:9
|
image: debian:9
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- echo "" > /etc/apt/apt.conf.d/50venenuxcustom
|
||||||
- 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
|
- echo "APT::Get::AllowUnauthenticated \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom
|
||||||
|
- echo "Acquire::AllowInsecureRepositories \"true\";" >> /etc/apt/apt.conf.d/50venenuxcustom
|
||||||
|
- apt-get update -y || true
|
||||||
|
- apt-get -y --force-yes install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev
|
||||||
|
|
||||||
package:debian-9:
|
# Bullseye
|
||||||
image: debian:9
|
|
||||||
dependencies:
|
|
||||||
- build:debian-9
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1v5
|
|
||||||
<<: *debpkg_template
|
|
||||||
|
|
||||||
deploy:debian-9:
|
build:debian-11:
|
||||||
image: debian:9
|
|
||||||
dependencies:
|
|
||||||
- package:debian-9
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1v5
|
|
||||||
<<: *debpkg_install
|
|
||||||
|
|
||||||
##
|
|
||||||
## Ubuntu
|
|
||||||
##
|
|
||||||
|
|
||||||
# Trusty
|
|
||||||
|
|
||||||
build:ubuntu-14.04:
|
|
||||||
<<: *build_definition
|
<<: *build_definition
|
||||||
image: ubuntu:trusty
|
image: debian:11
|
||||||
before_script:
|
before_script:
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" > /etc/apt/sources.list.d/uptodate-toolchain.list
|
- apt-get update -y || true
|
||||||
- apt-key adv --keyserver keyserver.ubuntu.com --recv BA9EF27F
|
- apt-get -y install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev
|
||||||
- apt-get update -y
|
|
||||||
- apt-get -y install build-essential gcc-6 g++-6 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
|
|
||||||
variables:
|
|
||||||
CC: gcc-6
|
|
||||||
CXX: g++-6
|
|
||||||
|
|
||||||
package:ubuntu-14.04:
|
##
|
||||||
image: ubuntu:trusty
|
## winbuntu the distro for stupid users
|
||||||
dependencies:
|
##
|
||||||
- build:ubuntu-14.04
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1
|
|
||||||
<<: *debpkg_template
|
|
||||||
|
|
||||||
deploy:ubuntu-14.04:
|
# Focal most close to bullseye
|
||||||
image: ubuntu:trusty
|
|
||||||
dependencies:
|
|
||||||
- package:ubuntu-14.04
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1
|
|
||||||
<<: *debpkg_install
|
|
||||||
|
|
||||||
# Xenial
|
build:ubuntu-20.04:
|
||||||
|
|
||||||
build:ubuntu-16.04:
|
|
||||||
<<: *build_definition
|
<<: *build_definition
|
||||||
image: ubuntu:xenial
|
image: ubuntu:focal
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- DEBIAN_FRONTEND=noninteractive apt-get update -y || true
|
||||||
- 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
|
- DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev
|
||||||
|
|
||||||
package:ubuntu-16.04:
|
# Utopic most close to jessie
|
||||||
image: ubuntu:xenial
|
|
||||||
dependencies:
|
|
||||||
- build:ubuntu-16.04
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1v5
|
|
||||||
<<: *debpkg_template
|
|
||||||
|
|
||||||
deploy:ubuntu-16.04:
|
build:ubuntu-14.10:
|
||||||
image: ubuntu:xenial
|
|
||||||
dependencies:
|
|
||||||
- package:ubuntu-16.04
|
|
||||||
variables:
|
|
||||||
LEVELDB_PKG: libleveldb1v5
|
|
||||||
<<: *debpkg_install
|
|
||||||
|
|
||||||
# Yakkety
|
|
||||||
|
|
||||||
#build:ubuntu-16.10:
|
|
||||||
# <<: *build_definition
|
|
||||||
# image: ubuntu:yakkety
|
|
||||||
# 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.10:
|
|
||||||
# image: ubuntu:yakkety
|
|
||||||
# dependencies:
|
|
||||||
# - build:ubuntu-16.10
|
|
||||||
# variables:
|
|
||||||
# LEVELDB_PKG: libleveldb1v5
|
|
||||||
# <<: *debpkg_template
|
|
||||||
|
|
||||||
#deploy:ubuntu-16.10:
|
|
||||||
# image: ubuntu:yakkety
|
|
||||||
# dependencies:
|
|
||||||
# - package:ubuntu-16.10
|
|
||||||
# variables:
|
|
||||||
# LEVELDB_PKG: libleveldb1v5
|
|
||||||
# <<: *debpkg_install
|
|
||||||
|
|
||||||
# Zesty
|
|
||||||
|
|
||||||
#build:ubuntu-17.04:
|
|
||||||
# <<: *build_definition
|
|
||||||
# image: ubuntu:zesty
|
|
||||||
# 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-17.04:
|
|
||||||
# image: ubuntu:zesty
|
|
||||||
# dependencies:
|
|
||||||
# - build:ubuntu-17.04
|
|
||||||
# variables:
|
|
||||||
# LEVELDB_PKG: libleveldb1v5
|
|
||||||
# <<: *debpkg_template
|
|
||||||
|
|
||||||
#deploy:ubuntu-17.04:
|
|
||||||
# image: ubuntu:zesty
|
|
||||||
# dependencies:
|
|
||||||
# - package:ubuntu-17.04
|
|
||||||
# variables:
|
|
||||||
# LEVELDB_PKG: libleveldb1v5
|
|
||||||
# <<: *debpkg_install
|
|
||||||
|
|
||||||
##
|
|
||||||
## Fedora
|
|
||||||
##
|
|
||||||
|
|
||||||
build:fedora-24:
|
|
||||||
<<: *build_definition
|
<<: *build_definition
|
||||||
image: fedora:24
|
image: ubuntu:utopic
|
||||||
before_script:
|
before_script:
|
||||||
- dnf -y install make automake gcc gcc-c++ kernel-devel cmake libcurl* openal* libvorbis* libXxf86vm-devel libogg-devel freetype-devel mesa-libGL-devel zlib-devel jsoncpp-devel irrlicht-devel bzip2-libs gmp-devel sqlite-devel luajit-devel leveldb-devel ncurses-devel doxygen spatialindex-devel bzip2-devel
|
- cat > /etc/apt/apt.conf.d/50venenuxcustom << EOF\nAPT::Get::AllowUnauthenticated "true";\nAcquire::AllowInsecureRepositories "true";\nEOF
|
||||||
|
- rm -rf /etc/apt/sources.list
|
||||||
|
- echo "deb http://old-releases.ubuntu.com/ubuntu/ utopic main restricted universe multiverse" > /etc/apt/sources.list.d/50debianoficial.list
|
||||||
|
- echo "deb http://old-releases.ubuntu.com/ubuntu/ utopic-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list
|
||||||
|
- echo "deb http://old-releases.ubuntu.com/ubuntu utopic-security main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list
|
||||||
|
- apt-get update -y || true
|
||||||
|
- apt-get -y --force-yes install build-essential cmake pkg-config debhelper lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev
|
||||||
|
|
||||||
|
# Zesty most close to stretch
|
||||||
|
|
||||||
|
build:ubuntu-17.04:
|
||||||
|
<<: *build_definition
|
||||||
|
image: ubuntu:zesty
|
||||||
|
before_script:
|
||||||
|
- cat > /etc/apt/apt.conf.d/50venenuxcustom << EOF\nAPT::Get::AllowUnauthenticated "true";\nAcquire::AllowInsecureRepositories "true";\nEOF
|
||||||
|
- rm -rf /etc/apt/sources.list
|
||||||
|
- echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty main restricted universe multiverse" > /etc/apt/sources.list.d/50debianoficial.list
|
||||||
|
- echo "deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list
|
||||||
|
- echo "deb http://old-releases.ubuntu.com/ubuntu zesty-security main restricted universe multiverse" >> /etc/apt/sources.list.d/50debianoficial.list
|
||||||
|
- apt-get update -y || true
|
||||||
|
- apt-get -y --force-yes install build-essential cmake pkg-config debhelper dh-systemd dh-autoreconf lsb-release gettext libbz2-dev libcurl4-gnutls-dev libnl-genl-3-dev libnl-3-dev librtmp-dev libidn11-dev libncurses-dev libfreetype6-dev libglu1-mesa-dev libgmp-dev libirrlicht-dev libjpeg-dev libjsoncpp-dev libleveldb-dev libluajit-5.1-dev liblua5.1-dev libogg-dev libopenal-dev libpng-dev libpq-dev libhiredis-dev libspatialindex-dev libsqlite3-dev libvorbis-dev libx11-dev libxxf86vm-dev postgresql-server-dev-all libpq-dev libhiredis-dev zlib1g-dev doxygen libxrandr-dev mesa-common-dev x11proto-xf86vidmode-dev libzstd-dev
|
||||||
|
|
||||||
##
|
##
|
||||||
## Mingw for Windows
|
## Feladora shit distro
|
||||||
##
|
##
|
||||||
|
|
||||||
.generic_win_template: &generic_win_template
|
build:fedora-36:
|
||||||
image: ubuntu:bionic
|
<<: *build_definition
|
||||||
|
image: fedora:36
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -y
|
- dnf -y install make automake gcc gcc-c++ kernel-devel cmake pkgconfig bzip2-devel gettext-devel sqlite-devel zlib-devel libpng-devel libjpeg-turbo-devel libXxf86vm-devel mesa-libGL-devel desktop-file-utils systemd openal* libvorbis* jsoncpp-devel libcurl* luajit-devel leveldb-devel gmp-devel libappstream-glib freetype-devel spatialindex-devel openssl-devel libogg-devel libpq-devel hiredis-devel libzstd-devel libXi-devel ncurses-devel doxygen
|
||||||
- apt-get install -y wget xz-utils unzip git cmake gettext
|
|
||||||
- wget -q http://minetest.kitsunemimi.pw/mingw-w64-${WIN_ARCH}_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
|
|
||||||
- sed -e "s|%PREFIX%|${WIN_ARCH}-w64-mingw32|" -e "s|%ROOTPATH%|/usr/${WIN_ARCH}-w64-mingw32|" < util/travis/toolchain_mingw.cmake.in > ${TOOLCHAIN_OUTPUT}
|
|
||||||
- tar -xaf mingw.tar.xz -C /usr
|
|
||||||
|
|
||||||
.build_win_template: &build_win_template
|
build:fedora-37:
|
||||||
<<: *generic_win_template
|
<<: *build_definition
|
||||||
stage: build
|
image: fedora:37
|
||||||
artifacts:
|
|
||||||
when: on_success
|
|
||||||
expire_in: 2h
|
|
||||||
paths:
|
|
||||||
- build/*
|
|
||||||
|
|
||||||
.package_win_template: &package_win_template
|
|
||||||
<<: *generic_win_template
|
|
||||||
stage: package
|
|
||||||
script:
|
|
||||||
- cd build/minetest/_build
|
|
||||||
- make package
|
|
||||||
- cd ../../../
|
|
||||||
- mkdir minetest-win-${WIN_ARCH}
|
|
||||||
- unzip build/minetest/_build/minetest-*-win*.zip -d minetest-win-${WIN_ARCH}
|
|
||||||
- cp /usr/${WIN_ARCH}-w64-mingw32/bin/libgcc*.dll minetest-win-${WIN_ARCH}/minetest-*-win*/bin
|
|
||||||
- cp /usr/${WIN_ARCH}-w64-mingw32/bin/libstdc++*.dll minetest-win-${WIN_ARCH}/minetest-*-win*/bin
|
|
||||||
- cp /usr/${WIN_ARCH}-w64-mingw32/bin/libwinpthread*.dll minetest-win-${WIN_ARCH}/minetest-*-win*/bin
|
|
||||||
artifacts:
|
|
||||||
when: on_success
|
|
||||||
expire_in: 90 day
|
|
||||||
paths:
|
|
||||||
- minetest-win-*/*
|
|
||||||
|
|
||||||
build:win32:
|
|
||||||
<<: *build_win_template
|
|
||||||
script:
|
|
||||||
- ./util/buildbot/buildwin32.sh build
|
|
||||||
variables:
|
|
||||||
NO_PACKAGE: "1"
|
|
||||||
WIN_ARCH: "i686"
|
|
||||||
TOOLCHAIN_OUTPUT: "util/buildbot/toolchain_mingw.cmake"
|
|
||||||
|
|
||||||
package:win32:
|
|
||||||
<<: *package_win_template
|
|
||||||
dependencies:
|
|
||||||
- build:win32
|
|
||||||
variables:
|
|
||||||
NO_PACKAGE: "1"
|
|
||||||
WIN_ARCH: "i686"
|
|
||||||
TOOLCHAIN_OUTPUT: "util/buildbot/toolchain_mingw.cmake"
|
|
||||||
|
|
||||||
build:win64:
|
|
||||||
<<: *build_win_template
|
|
||||||
script:
|
|
||||||
- ./util/buildbot/buildwin64.sh build
|
|
||||||
variables:
|
|
||||||
NO_PACKAGE: "1"
|
|
||||||
WIN_ARCH: "x86_64"
|
|
||||||
TOOLCHAIN_OUTPUT: "util/buildbot/toolchain_mingw64.cmake"
|
|
||||||
|
|
||||||
package:win64:
|
|
||||||
<<: *package_win_template
|
|
||||||
dependencies:
|
|
||||||
- build:win64
|
|
||||||
variables:
|
|
||||||
NO_PACKAGE: "1"
|
|
||||||
WIN_ARCH: "x86_64"
|
|
||||||
TOOLCHAIN_OUTPUT: "util/buildbot/toolchain_mingw64.cmake"
|
|
||||||
|
|
||||||
package:docker:
|
|
||||||
stage: package
|
|
||||||
image: docker:stable
|
|
||||||
services:
|
|
||||||
- docker:dind
|
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
- dnf -y install make automake gcc gcc-c++ kernel-devel cmake pkgconfig bzip2-devel gettext-devel sqlite-devel zlib-devel libpng-devel libjpeg-turbo-devel libXxf86vm-devel mesa-libGL-devel desktop-file-utils systemd openal* libvorbis* jsoncpp-devel libcurl* luajit-devel leveldb-devel gmp-devel libappstream-glib freetype-devel spatialindex-devel openssl-devel libogg-devel libpq-devel hiredis-devel libzstd-devel libXi-devel ncurses-devel doxygen
|
||||||
script:
|
|
||||||
- docker build . -t ${CONTAINER_IMAGE}/server:$CI_COMMIT_SHA -t ${CONTAINER_IMAGE}/server:$CI_COMMIT_REF_NAME -t ${CONTAINER_IMAGE}/server:latest
|
|
||||||
- docker push ${CONTAINER_IMAGE}/server:$CI_COMMIT_SHA
|
|
||||||
- docker push ${CONTAINER_IMAGE}/server:$CI_COMMIT_REF_NAME
|
|
||||||
- docker push ${CONTAINER_IMAGE}/server:latest
|
|
||||||
|
|
||||||
pages:
|
|
||||||
stage: deploy
|
|
||||||
image: python:3.7
|
|
||||||
before_script:
|
|
||||||
- pip install pip==18.1
|
|
||||||
- pip install git+https://github.com/Python-Markdown/markdown.git
|
|
||||||
- pip install git+https://github.com/mkdocs/mkdocs.git
|
|
||||||
- pip install pygments
|
|
||||||
script:
|
|
||||||
- cd doc/mkdocs && ./build.sh
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user