2019-10-14 21:13:00 +00:00
|
|
|
name: Mac
|
2019-10-26 01:04:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-10-14 21:13:00 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
desktopBuild:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: setup Homebrew
|
2019-12-31 01:19:40 +00:00
|
|
|
run: brew install autoconf automake libtool xz hidapi libusb libxml2 libxslt libzip openssl pkg-config libgit2 libssh2 libjpg libpng
|
2019-10-14 21:13:00 +00:00
|
|
|
- name: set our Qt build
|
|
|
|
run: |
|
|
|
|
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
|
|
|
|
tar -xJ -C Qt/5.13.0 -f Qt-5.13.0-mac.tar.xz
|
2020-01-01 18:52:53 +00:00
|
|
|
- name: build Subsurface-mobile
|
2019-10-14 21:13:00 +00:00
|
|
|
run: |
|
|
|
|
cd ${GITHUB_WORKSPACE}/..
|
|
|
|
export QT_ROOT=${GITHUB_WORKSPACE}/Qt/5.13.0/clang_64
|
2019-12-27 19:21:09 +00:00
|
|
|
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
|
2019-10-14 21:13:00 +00:00
|
|
|
export PATH=$QT_ROOT/bin:$PATH
|
|
|
|
export CMAKE_PREFIX_PATH=$QT_ROOT/lib/cmake
|
|
|
|
DIR=$(pwd)
|
|
|
|
|
|
|
|
# first build Subsurface-mobile to ensure this didn't get broken
|
|
|
|
bash -e -x ./subsurface/scripts/build.sh -mobile
|
|
|
|
|
2020-01-01 18:52:53 +00:00
|
|
|
- name: test mobile build
|
|
|
|
run: |
|
2019-12-27 19:21:09 +00:00
|
|
|
echo "------------------------------------"
|
|
|
|
echo "run tests for mobile build"
|
2020-01-01 18:52:53 +00:00
|
|
|
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
|
2020-10-24 17:28:19 +00:00
|
|
|
./TestGitStorage -v2
|
2019-12-27 19:21:09 +00:00
|
|
|
make check
|
2020-01-01 18:52:53 +00:00
|
|
|
|
|
|
|
- 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)
|
2019-12-27 19:21:09 +00:00
|
|
|
|
2019-10-14 21:13:00 +00:00
|
|
|
# now Subsurface with WebKit
|
|
|
|
bash -e -x ./subsurface/scripts/build.sh -desktop -build-with-webkit -release
|
|
|
|
|
|
|
|
cd ${GITHUB_WORKSPACE}/build
|
|
|
|
|
|
|
|
# build export-html to make sure that didn't get broken
|
|
|
|
make export-html
|
|
|
|
|
2020-01-01 18:52:53 +00:00
|
|
|
- name: test desktop build
|
|
|
|
run: |
|
2019-12-27 19:21:09 +00:00
|
|
|
echo "------------------------------------"
|
2020-01-01 18:52:53 +00:00
|
|
|
echo "run tests for desktop build"
|
|
|
|
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
|
2020-10-24 17:28:19 +00:00
|
|
|
./TestGitStorage -v2
|
2019-12-27 19:21:09 +00:00
|
|
|
make check
|
|
|
|
|