mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:13:23 +00:00
GitHub Actions: better grouping of test steps
This is a bit more convoluted to do inside of the Ubuntu 19.10 container, but at least for Ubuntu 14.04 and for Mac this will be an improvement. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
06de2a91ce
commit
5584574062
2 changed files with 34 additions and 15 deletions
11
.github/workflows/linux-bionic-5.9.yml
vendored
11
.github/workflows/linux-bionic-5.9.yml
vendored
|
@ -29,15 +29,18 @@ jobs:
|
||||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||||
qtquickcontrols2-5-dev xvfb
|
qtquickcontrols2-5-dev xvfb
|
||||||
|
|
||||||
- name: run build
|
- name: build Subsurface
|
||||||
|
run: |
|
||||||
|
cd ..
|
||||||
|
bash -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||||
|
|
||||||
|
- name: test desktop build
|
||||||
env:
|
env:
|
||||||
SSRF_USER_EMAIL: ssrftest-u18@hohndel.org
|
SSRF_USER_EMAIL: ssrftest-u18@hohndel.org
|
||||||
SSRF_USER_PASSWORD: ${{ secrets.cloudu18 }}
|
SSRF_USER_PASSWORD: ${{ secrets.cloudu18 }}
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
|
||||||
bash -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
|
||||||
# and now run the tests - with Qt 5.9 we can only run the desktop flavor
|
# and now run the tests - with Qt 5.9 we can only run the desktop flavor
|
||||||
echo "------------------------------------"
|
echo "------------------------------------"
|
||||||
echo "run tests"
|
echo "run tests"
|
||||||
cd subsurface/build
|
cd build
|
||||||
xvfb-run --auto-servernum make check
|
xvfb-run --auto-servernum make check
|
||||||
|
|
38
.github/workflows/mac.yml
vendored
38
.github/workflows/mac.yml
vendored
|
@ -20,10 +20,7 @@ jobs:
|
||||||
mkdir -p Qt/5.13.0
|
mkdir -p Qt/5.13.0
|
||||||
curl --output Qt-5.13.0-mac.tar.xz https://f002.backblazeb2.com/file/Subsurface-Travis/Qt-5.13.0-mac.tar.xz
|
curl --output Qt-5.13.0-mac.tar.xz https://f002.backblazeb2.com/file/Subsurface-Travis/Qt-5.13.0-mac.tar.xz
|
||||||
tar -xJ -C Qt/5.13.0 -f Qt-5.13.0-mac.tar.xz
|
tar -xJ -C Qt/5.13.0 -f Qt-5.13.0-mac.tar.xz
|
||||||
- name: build Subsurface
|
- name: build Subsurface-mobile
|
||||||
env:
|
|
||||||
SSRF_USER_EMAIL: ssrftest-mac@hohndel.org
|
|
||||||
SSRF_USER_PASSWORD: ${{ secrets.cloudmac }}
|
|
||||||
run: |
|
run: |
|
||||||
cd ${GITHUB_WORKSPACE}/..
|
cd ${GITHUB_WORKSPACE}/..
|
||||||
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||||
|
@ -35,12 +32,26 @@ jobs:
|
||||||
# first build Subsurface-mobile to ensure this didn't get broken
|
# first build Subsurface-mobile to ensure this didn't get broken
|
||||||
bash -e -x ./subsurface/scripts/build.sh -mobile
|
bash -e -x ./subsurface/scripts/build.sh -mobile
|
||||||
|
|
||||||
# run tests
|
- name: test mobile build
|
||||||
|
env:
|
||||||
|
SSRF_USER_EMAIL: ssrftest-mac@hohndel.org
|
||||||
|
SSRF_USER_PASSWORD: ${{ secrets.cloudmac }}
|
||||||
|
run: |
|
||||||
echo "------------------------------------"
|
echo "------------------------------------"
|
||||||
echo "run tests for mobile build"
|
echo "run tests for mobile build"
|
||||||
pushd ${GITHUB_WORKSPACE}/build-mobile/tests
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||||
|
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||||
|
cd ${GITHUB_WORKSPACE}/build-mobile/tests
|
||||||
make check
|
make check
|
||||||
popd
|
|
||||||
|
- name: build Subsurface
|
||||||
|
run: |
|
||||||
|
cd ${GITHUB_WORKSPACE}/..
|
||||||
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||||
|
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||||
|
export PATH=$QT_ROOT/bin:$PATH
|
||||||
|
export CMAKE_PREFIX_PATH=$QT_ROOT/lib/cmake
|
||||||
|
DIR=$(pwd)
|
||||||
|
|
||||||
# now Subsurface with WebKit
|
# now Subsurface with WebKit
|
||||||
bash -e -x ./subsurface/scripts/build.sh -desktop -build-with-webkit -release
|
bash -e -x ./subsurface/scripts/build.sh -desktop -build-with-webkit -release
|
||||||
|
@ -50,12 +61,17 @@ jobs:
|
||||||
# build export-html to make sure that didn't get broken
|
# build export-html to make sure that didn't get broken
|
||||||
make export-html
|
make export-html
|
||||||
|
|
||||||
# run the tests
|
- name: test desktop build
|
||||||
|
env:
|
||||||
|
SSRF_USER_EMAIL: ssrftest-mac@hohndel.org
|
||||||
|
SSRF_USER_PASSWORD: ${{ secrets.cloudmac }}
|
||||||
|
run: |
|
||||||
echo "------------------------------------"
|
echo "------------------------------------"
|
||||||
echo "run tests"
|
echo "run tests for desktop build"
|
||||||
pushd ${GITHUB_WORKSPACE}/build/tests
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
||||||
|
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
||||||
|
cd ${GITHUB_WORKSPACE}/build/tests
|
||||||
make check
|
make check
|
||||||
popd
|
|
||||||
|
|
||||||
- name: package Subsurface
|
- name: package Subsurface
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue