mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 14:42:24 +01:00
Centralize IrrlichtMt version used for builds
maybe a submodule would have really been easier...
This commit is contained in:
parent
71f6a5f44e
commit
175e132576
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -226,11 +226,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Checkout IrrlichtMt
|
- name: Checkout IrrlichtMt
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
with:
|
$ref = @(Get-Content misc\irrlichtmt_tag.txt)
|
||||||
repository: minetest/irrlicht
|
git clone https://github.com/minetest/irrlicht lib\irrlichtmt --depth 1 -b $ref[0]
|
||||||
path: lib/irrlichtmt/
|
|
||||||
ref: "1.9.0mt7"
|
|
||||||
|
|
||||||
- name: Restore from cache and run vcpkg
|
- name: Restore from cache and run vcpkg
|
||||||
uses: lukka/run-vcpkg@v7
|
uses: lukka/run-vcpkg@v7
|
||||||
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
@ -22,7 +22,6 @@ on:
|
|||||||
- '.github/workflows/macos.yml'
|
- '.github/workflows/macos.yml'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IRRLICHT_TAG: 1.9.0mt7
|
|
||||||
MINETEST_GAME_REPO: https://github.com/minetest/minetest_game.git
|
MINETEST_GAME_REPO: https://github.com/minetest/minetest_game.git
|
||||||
MINETEST_GAME_BRANCH: master
|
MINETEST_GAME_BRANCH: master
|
||||||
MINETEST_GAME_NAME: minetest_game
|
MINETEST_GAME_NAME: minetest_game
|
||||||
@ -43,8 +42,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
git clone -b $MINETEST_GAME_BRANCH $MINETEST_GAME_REPO games/$MINETEST_GAME_NAME
|
git clone -b $MINETEST_GAME_BRANCH $MINETEST_GAME_REPO games/$MINETEST_GAME_NAME
|
||||||
rm -rvf games/$MINETEST_GAME_NAME/.git
|
git clone https://github.com/minetest/irrlicht lib/irrlichtmt --depth 1 -b $(cat misc/irrlichtmt_tag.txt)
|
||||||
git clone https://github.com/minetest/irrlicht -b $IRRLICHT_TAG lib/irrlichtmt
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
cmake .. \
|
||||||
|
@ -9,7 +9,6 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IRRLICHT_TAG: "1.9.0mt7"
|
|
||||||
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
|
||||||
|
|
||||||
@ -19,7 +18,7 @@ variables:
|
|||||||
- apt-get update
|
- apt-get update
|
||||||
- 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
|
- 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:
|
script:
|
||||||
- git clone https://github.com/minetest/irrlicht -b $IRRLICHT_TAG lib/irrlichtmt
|
- git clone https://github.com/minetest/irrlicht lib/irrlichtmt --depth 1 -b $(cat misc/irrlichtmt_tag.txt)
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- cmake -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
|
- cmake -DCMAKE_INSTALL_PREFIX=../artifact/minetest/usr/ -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
|
||||||
- make -j $(($(nproc) + 1))
|
- make -j $(($(nproc) + 1))
|
||||||
|
1
misc/irrlichtmt_tag.txt
Normal file
1
misc/irrlichtmt_tag.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.9.0mt7
|
@ -8,7 +8,7 @@ GAME_GIT=https://github.com/minetest/minetest_game
|
|||||||
GAME_BRANCH=master
|
GAME_BRANCH=master
|
||||||
GAME_NAME=minetest_game
|
GAME_NAME=minetest_game
|
||||||
|
|
||||||
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
topdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
echo "Usage: $0 <build directory>"
|
echo "Usage: $0 <build directory>"
|
||||||
exit 1
|
exit 1
|
||||||
@ -28,7 +28,7 @@ if [ -z "$compiler" ]; then
|
|||||||
echo "Unable to determine which MinGW compiler to use"
|
echo "Unable to determine which MinGW compiler to use"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
toolchain_file=$dir/toolchain_${compiler/-gcc/}.cmake
|
toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
|
||||||
echo "Using $toolchain_file"
|
echo "Using $toolchain_file"
|
||||||
|
|
||||||
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
|
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
|
||||||
@ -45,7 +45,7 @@ done
|
|||||||
echo "The compiler runtime DLLs could not be found, they might be missing in the final package."
|
echo "The compiler runtime DLLs could not be found, they might be missing in the final package."
|
||||||
|
|
||||||
# Get stuff
|
# Get stuff
|
||||||
irrlicht_version=1.9.0mt7
|
irrlicht_version=$(cat $topdir/../../misc/irrlichtmt_tag.txt)
|
||||||
ogg_version=1.3.5
|
ogg_version=1.3.5
|
||||||
openal_version=1.21.1
|
openal_version=1.21.1
|
||||||
vorbis_version=1.3.7
|
vorbis_version=1.3.7
|
||||||
|
@ -8,7 +8,7 @@ GAME_GIT=https://github.com/minetest/minetest_game
|
|||||||
GAME_BRANCH=master
|
GAME_BRANCH=master
|
||||||
GAME_NAME=minetest_game
|
GAME_NAME=minetest_game
|
||||||
|
|
||||||
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
topdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
echo "Usage: $0 <build directory>"
|
echo "Usage: $0 <build directory>"
|
||||||
exit 1
|
exit 1
|
||||||
@ -28,7 +28,7 @@ if [ -z "$compiler" ]; then
|
|||||||
echo "Unable to determine which MinGW compiler to use"
|
echo "Unable to determine which MinGW compiler to use"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
toolchain_file=$dir/toolchain_${compiler/-gcc/}.cmake
|
toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
|
||||||
echo "Using $toolchain_file"
|
echo "Using $toolchain_file"
|
||||||
|
|
||||||
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
|
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
|
||||||
@ -45,7 +45,7 @@ done
|
|||||||
echo "The compiler runtime DLLs could not be found, they might be missing in the final package."
|
echo "The compiler runtime DLLs could not be found, they might be missing in the final package."
|
||||||
|
|
||||||
# Get stuff
|
# Get stuff
|
||||||
irrlicht_version=1.9.0mt7
|
irrlicht_version=$(cat $topdir/../../misc/irrlichtmt_tag.txt)
|
||||||
ogg_version=1.3.5
|
ogg_version=1.3.5
|
||||||
openal_version=1.21.1
|
openal_version=1.21.1
|
||||||
vorbis_version=1.3.7
|
vorbis_version=1.3.7
|
||||||
|
@ -10,7 +10,8 @@ install_linux_deps() {
|
|||||||
if [[ "$1" == "--no-irr" ]]; then
|
if [[ "$1" == "--no-irr" ]]; then
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
wget "https://github.com/minetest/irrlicht/releases/download/1.9.0mt7/ubuntu-bionic.tar.gz"
|
local ver=$(cat misc/irrlichtmt_tag.txt)
|
||||||
|
wget "https://github.com/minetest/irrlicht/releases/download/$ver/ubuntu-bionic.tar.gz"
|
||||||
sudo tar -xaf ubuntu-bionic.tar.gz -C /usr/local
|
sudo tar -xaf ubuntu-bionic.tar.gz -C /usr/local
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user