2021-03-31 16:06:35 +00:00
|
|
|
name: openSUSE/Tumbleweed / Qt latest--
|
2020-10-16 23:40:14 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2020-12-11 17:49:40 +00:00
|
|
|
buildOpenSUSElatest:
|
2020-10-16 23:40:14 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2020-10-26 00:21:12 +00:00
|
|
|
image: opensuse/tumbleweed:latest
|
2020-10-16 23:40:14 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: get container ready for build
|
|
|
|
run: |
|
|
|
|
echo "--------------------------------------------------------------"
|
|
|
|
echo "update distro and install dependencies"
|
|
|
|
zypper -n install git gcc-c++ make autoconf automake libtool cmake libzip-devel \
|
|
|
|
libxml2-devel libxslt-devel sqlite3-devel libusb-1_0-devel \
|
|
|
|
libqt5-linguist-devel libqt5-qttools-devel libQt5WebKitWidgets-devel \
|
|
|
|
libqt5-qtbase-devel libQt5WebKit5-devel libqt5-qtsvg-devel \
|
|
|
|
libqt5-qtscript-devel libqt5-qtdeclarative-devel \
|
|
|
|
libqt5-qtconnectivity-devel libqt5-qtlocation-devel libcurl-devel \
|
|
|
|
libQt5QuickControls2-devel bluez-devel \
|
2021-01-08 20:53:27 +00:00
|
|
|
which libgit2-devel libssh2-devel libmtp-devel
|
2020-10-16 23:40:14 +00:00
|
|
|
|
|
|
|
# if we want to run the tests below, add xvfb-run
|
|
|
|
|
|
|
|
- name: build Subsurface
|
|
|
|
run: |
|
|
|
|
echo "--------------------------------------------------------------"
|
2020-12-19 17:45:17 +00:00
|
|
|
echo "building all three binaries"
|
2020-10-16 23:40:14 +00:00
|
|
|
|
2020-12-19 17:45:17 +00:00
|
|
|
# now build the desktop version (including WebKit), mobile and downloader
|
|
|
|
# the mobile build needs git setup to apply the Kirigami changes
|
|
|
|
git config --global user.email "ci@subsurface-divelog.org"
|
|
|
|
git config --global user.name "Subsurface CI"
|
2020-10-16 23:40:14 +00:00
|
|
|
cd ..
|
2020-12-19 17:45:17 +00:00
|
|
|
bash -e -x subsurface/scripts/build.sh -all -build-with-webkit
|
2020-10-16 23:40:14 +00:00
|
|
|
|
|
|
|
# let's not run the tests... to do that, we need to install 'xvfb-run' above
|
|
|
|
# - name: test desktop build
|
|
|
|
# run: |
|
|
|
|
# echo "--------------------------------------------------------------"
|
|
|
|
# echo "running tests for desktop"
|
|
|
|
# cd build
|
|
|
|
# xvfb-run --auto-servernum make check
|