mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 19:20:24 +00:00

The gcc-9 shipped with the Scout runtime forces the use of -static-libstdc++ which is what allows this to work. However, LTO is not yet able to be enabled since as of right now it simply crashes immediately with `free(): invalid pointer`.
21 lines
712 B
Bash
Executable File
21 lines
712 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
VALVEFILE=com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.Dockerfile
|
|
VALVETAR=com.valvesoftware.SteamRuntime.Sdk-amd64,i386-scout-sysroot.tar.gz
|
|
VALVE_SNAPSHOT=0.20210114.2
|
|
|
|
DOCKERBASEIMAGE=steamrt_scout_amd64
|
|
DOCKERLOCALIMAGE=wesnoth/wesnoth:steamrt-master
|
|
DOCKERLOCALFILE=./CI/Dockerfile-base-steamrt
|
|
|
|
if [ ! -f "$VALVEFILE" ]; then
|
|
wget http://repo.steampowered.com/steamrt-images-scout/snapshots/"$VALVE_SNAPSHOT"/"$VALVEFILE"
|
|
fi
|
|
if [ ! -f "$VALVETAR" ]; then
|
|
wget http://repo.steampowered.com/steamrt-images-scout/snapshots/"$VALVE_SNAPSHOT"/"$VALVETAR"
|
|
fi
|
|
|
|
docker build -t "$DOCKERBASEIMAGE" -f "$VALVEFILE" .
|
|
|
|
docker build -t "$DOCKERLOCALIMAGE" -f "$DOCKERLOCALFILE" .
|