mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-14 06:20:25 +01:00
3fdc9ef27e
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.
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
services:
|
|
javascript:
|
|
build: ../../../misc/docker
|
|
user: ${UID_GID}
|
|
volumes:
|
|
- .:/src
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
cd /src/thirdparty/godot-cpp
|
|
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
|