mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-06 20:55:31 +02:00
Add Docker build for Linux
Adds support for building Linux binaries inside a docker container in order to target an older version of GLIBC. Updates GitHub Actions workflow to use it. As a result the minimum version of GLIBC that Linux users need to have installed on their system is 2.17 which was released in 2012.
This commit is contained in:
parent
3670856851
commit
3fdc9ef27e
6 changed files with 111 additions and 27 deletions
|
@ -12,3 +12,46 @@ services:
|
|||
scons platform=javascript target=$${TARGET:-debug} -j$$(nproc)
|
||||
cd /src
|
||||
scons platform=javascript target=$${TARGET:-debug} -j$$(nproc)
|
||||
godot-cpp-linux:
|
||||
user: ${UID_GID}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: linux.Dockerfile
|
||||
volumes:
|
||||
- ./thirdparty/godot-cpp:/godot-cpp
|
||||
working_dir: /godot-cpp
|
||||
libuv-linux:
|
||||
user: ${UID_GID}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: linux.Dockerfile
|
||||
volumes:
|
||||
- ./thirdparty/libuv:/libuv
|
||||
working_dir: /libuv
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
target=$${TARGET:-release}
|
||||
bits=$${BITS:-'64'}
|
||||
mkdir build 2>/dev/null ;
|
||||
args="-DCMAKE_BUILD_TYPE=$$target \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE"
|
||||
if [[ $$bits -eq 32 ]]; then
|
||||
args="$$args -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_C_FLAGS=-m32";
|
||||
else
|
||||
args="$$args -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS=";
|
||||
fi
|
||||
pushd build
|
||||
cmake .. $$args
|
||||
popd
|
||||
cmake --build build
|
||||
libgodot-xterm-linux:
|
||||
user: ${UID_GID}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: linux.Dockerfile
|
||||
volumes:
|
||||
- .:/godot-xterm
|
||||
working_dir: /godot-xterm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue