Github Actions mingw/flatpak/steam runtime [ci skip]

This commit is contained in:
Pentarctagon 2020-11-20 19:57:20 -06:00
parent 31a5120e1c
commit e502e4b017
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0
2 changed files with 80 additions and 3 deletions

View file

@ -101,3 +101,60 @@ jobs:
- name: Ubuntu 18.04
run: ./.github/workflows/ci-scripts/ubuntu.sh master 1804 false scons gcc g++ 14 release false
linux-06-master:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Cache object files
uses: actions/cache@v2
env:
cache-name: linux-06-cache-master
with:
path: ~/build-cache
key: linux-06-master
- name: Steam Runtime
run: ./.github/workflows/ci-scripts/ubuntu.sh master steamrt false scons gcc-5 g++-5 14 release false
linux-07-master:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Cache object files
uses: actions/cache@v2
env:
cache-name: linux-07-cache-master
with:
path: ~/build-cache
key: linux-07-master
- name: MinGW Crosscompile
run: ./.github/workflows/ci-scripts/ubuntu.sh master mingw false scons gcc g++ 14 release false
linux-08-master:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Cache object files
uses: actions/cache@v2
env:
cache-name: linux-08-cache-master
with:
path: ~/build-cache
key: linux-08-master
- name: Flatpak
run: ./.github/workflows/ci-scripts/ubuntu.sh master flatpak false scons gcc g++ 14 release false

View file

@ -41,11 +41,31 @@ EXIT_VAL=-1
if [ "$NLS" == "only" ]; then
echo "TODO"
elif [ "$IMAGE" == "flatpak" ]; then
echo "TODO"
# docker's --volume means the directory is on a separate filesystem
# flatpak-builder doesn't support this
# therefore manually move stuff between where flatpak needs it and where travis' caching can see it
rm -R .flatpak-builder/*
cp -R "$CACHE_DIR"/. .flatpak-builder/
jq '.modules[2].sources[0]={"type":"dir","path":"/home/wesnoth-travis"} | ."build-options".env.FLATPAK_BUILDER_N_JOBS="2"' packaging/flatpak/org.wesnoth.Wesnoth.json > utils/dockerbuilds/travis/org.wesnoth.Wesnoth.json
flatpak-builder --ccache --force-clean --disable-rofiles-fuse wesnoth-app utils/dockerbuilds/travis/org.wesnoth.Wesnoth.json
EXIT_VAL=$?
rm -R "$CACHE_DIR"/*
cp -R .flatpak-builder/. "$CACHE_DIR"/
chmod -R 777 "$CACHE_DIR"/
exit $EXIT_VAL
elif [ "$IMAGE" == "mingw" ]; then
echo "TODO"
scons wesnoth wesnothd build="$CFG" \
cxx_std=$CXX_STD strict=false \
nls=false enable_lto="$LTO" jobs=2 --debug=time \
arch=x86-64 prefix=/windows/mingw64 gtkdir=/windows/mingw64 host=x86_64-w64-mingw32
EXIT_VAL=$?
exit $EXIT_VAL
elif [ "$IMAGE" == "steamrt" ]; then
echo "TODO"
scons ctool=$CC cxxtool=$CXX boostdir=/usr/local/include boostlibdir=/usr/local/lib extra_flags_config=-lrt \
cxx_std=$CXX_STD strict=true nls="$NLS" enable_lto="$LTO" jobs=2 --debug=time \
build="$CFG"
EXIT_VAL=$?
exit $EXIT_VAL
else
if [ "$TOOL" == "cmake" ]; then
export CCACHE_MAXSIZE=3000M