mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Use build directory for builds
This commit is contained in:
parent
5683bb76cc
commit
ea2fba877a
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
@ -45,8 +45,8 @@ jobs:
|
|||||||
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
|
rm -rvf games/$MINETEST_GAME_NAME/.git
|
||||||
git clone https://github.com/minetest/irrlicht -b $IRRLICHT_TAG lib/irrlichtmt
|
git clone https://github.com/minetest/irrlicht -b $IRRLICHT_TAG lib/irrlichtmt
|
||||||
mkdir cmakebuild
|
mkdir build
|
||||||
cd cmakebuild
|
cd build
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
||||||
-DCMAKE_FIND_FRAMEWORK=LAST \
|
-DCMAKE_FIND_FRAMEWORK=LAST \
|
||||||
|
@ -20,8 +20,8 @@ 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
|
- 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 -b $IRRLICHT_TAG lib/irrlichtmt
|
||||||
- mkdir cmakebuild
|
- mkdir build
|
||||||
- cd cmakebuild
|
- cd build
|
||||||
- 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/ -DCMAKE_BUILD_TYPE=Release -DRUN_IN_PLACE=FALSE -DENABLE_GETTEXT=TRUE -DBUILD_SERVER=TRUE ..
|
||||||
- make -j2
|
- make -j2
|
||||||
- make install
|
- make install
|
||||||
|
@ -418,8 +418,8 @@ git clone --depth 1 https://github.com/minetest/irrlicht.git lib/irrlichtmt
|
|||||||
#### Build
|
#### Build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mkdir cmakebuild
|
mkdir build
|
||||||
cd cmakebuild
|
cd build
|
||||||
|
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash -e
|
#! /bin/bash -e
|
||||||
|
|
||||||
mkdir cmakebuild
|
mkdir build
|
||||||
cd cmakebuild
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug \
|
cmake -DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DRUN_IN_PLACE=TRUE -DENABLE_GETTEXT=TRUE \
|
-DRUN_IN_PLACE=TRUE -DENABLE_GETTEXT=TRUE \
|
||||||
-DBUILD_SERVER=TRUE ${CMAKE_FLAGS} ..
|
-DBUILD_SERVER=TRUE ${CMAKE_FLAGS} ..
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash -eu
|
#! /bin/bash -eu
|
||||||
|
|
||||||
mkdir -p cmakebuild
|
mkdir -p build
|
||||||
cd cmakebuild
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug \
|
cmake -DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DRUN_IN_PLACE=TRUE \
|
-DRUN_IN_PLACE=TRUE \
|
||||||
@ -12,6 +12,6 @@ make GenerateVersion
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
./util/ci/run-clang-tidy.py \
|
./util/ci/run-clang-tidy.py \
|
||||||
-clang-tidy-binary=clang-tidy-9 -p cmakebuild \
|
-clang-tidy-binary=clang-tidy-9 -p build \
|
||||||
-quiet -config="$(cat .clang-tidy)" \
|
-quiet -config="$(cat .clang-tidy)" \
|
||||||
'src/.*'
|
'src/.*'
|
||||||
|
Loading…
Reference in New Issue
Block a user