Github Actions ubuntu compile test.

This commit is contained in:
Pentarctagon 2020-11-20 11:19:27 -06:00
parent ef20fc769c
commit c09e95a20e
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0
2 changed files with 11 additions and 1 deletions

8
.github/workflows/ci-scripts/docker.sh vendored Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
scons wesnoth wesnothd campaignd boost_unit_tests build=release \
ctool=gcc cxxtool=g++ cxx_std=17 \
extra_flags_config="-pipe" strict=true forum_user_handler=true \
nls=false enable_lto=true sanitize=false jobs=2 --debug=time
ls -Al

View file

@ -2,6 +2,8 @@
date
docker image ls
echo FROM wesnoth/wesnoth:2004-master > utils/dockerbuilds/travis/Dockerfile-travis-2004-master
echo COPY ./ /home/wesnoth-travis/ >> utils/dockerbuilds/travis/Dockerfile-travis-2004-master
echo WORKDIR /home/wesnoth-travis >> utils/dockerbuilds/travis/Dockerfile-travis-2004-master
@ -10,4 +12,4 @@ docker build -t wesnoth-repo:2004-master -f utils/dockerbuilds/travis/Dockerfile
docker image ls
docker run --cap-add=ALL --privileged wesnoth-repo:2004-master ./.github/workflows/ci-scripts/docker.sh