2022-03-14 20:24:18 +00:00
|
|
|
name: Fedora 35 / Qt 6--
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildFedoraQt6:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: fedora:35
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: get container ready for build
|
|
|
|
run: |
|
|
|
|
echo "--------------------------------------------------------------"
|
|
|
|
echo "update distro and install dependencies"
|
|
|
|
|
|
|
|
dnf update -y
|
|
|
|
dnf install -y autoconf automake bluez-libs-devel cmake gcc-c++ git-core \
|
|
|
|
libcurl-devel libsqlite3x-devel libssh2-devel libtool libudev-devel \
|
|
|
|
libusbx-devel libxml2-devel libxslt-devel make \
|
|
|
|
qt6-qtbase-devel qt6-qtconnectivity-devel qt6-qtdeclarative-devel \
|
|
|
|
qt6-qtlocation-devel qt6-qtsvg-devel \
|
|
|
|
qt6-qttools-devel redhat-rpm-config \
|
|
|
|
libxkbcommon-devel qt6-qt5compat-devel \
|
|
|
|
bluez-libs-devel libgit2-devel libzip-devel libmtp-devel \
|
|
|
|
xorg-x11-server-Xvfb
|
|
|
|
|
|
|
|
- name: build Subsurface
|
2022-05-13 18:33:05 +00:00
|
|
|
env:
|
|
|
|
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
2022-03-14 20:24:18 +00:00
|
|
|
run: |
|
|
|
|
echo "--------------------------------------------------------------"
|
|
|
|
echo "building desktop"
|
|
|
|
|
|
|
|
# now build for the desktop version (without WebKit)
|
|
|
|
cd ..
|
2022-05-13 18:33:05 +00:00
|
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
|
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
|
|
|
git config --global --get-all safe.directory
|
2022-04-23 17:29:05 +00:00
|
|
|
bash -e -x subsurface/scripts/build.sh -desktop -build-with-qt6
|
2022-03-14 20:24:18 +00:00
|
|
|
|
|
|
|
- name: test desktop build
|
|
|
|
run: |
|
|
|
|
echo "--------------------------------------------------------------"
|
|
|
|
echo "running tests for desktop"
|
|
|
|
cd build/tests
|
|
|
|
xvfb-run --auto-servernum make check
|
|
|
|
|