mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
62477d8c65
- for now all versions start with v6.0 - CICD builds use the monolithic build number as patch level, e.g. v6.0.12345 - local builds use the following algorithm - find the newest commit with a CICD build number that is included in the working tree - count the number of commits in the working tree since that commit - if there are no commits since the last CICD build, the local build version will be v6.0.12345-local - if there are N commits since the last CICD build, it will be v6.0.12345-N-local - test builds in the CICD that don't create artifacts simply use a dummy release in order to not incorrectly increment the build number and also not to waste time and resources by manually checking out the nightly-build repo for each of these builds. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
61 lines
2 KiB
YAML
61 lines
2 KiB
YAML
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: store dummy version and build number for test build
|
|
run: |
|
|
echo "100" > latest-subsurface-buildnumber
|
|
echo "CICD-test-build" > latest-subsurface-buildnumber-extension
|
|
|
|
- name: build Subsurface
|
|
env:
|
|
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
|
run: |
|
|
echo "--------------------------------------------------------------"
|
|
echo "building desktop"
|
|
|
|
# now build for the desktop version (without WebKit)
|
|
cd ..
|
|
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
|
|
bash -e -x subsurface/scripts/build.sh -desktop -build-with-qt6
|
|
|
|
- name: test desktop build
|
|
run: |
|
|
echo "--------------------------------------------------------------"
|
|
echo "running tests for desktop"
|
|
cd build/tests
|
|
xvfb-run --auto-servernum make check
|
|
|