Skip to content

Migrate QML settings from Qt labs to QtCore #11

Migrate QML settings from Qt labs to QtCore

Migrate QML settings from Qt labs to QtCore #11

Workflow file for this run

name: Linux build
on:
push:
branches:
- master
- next
- 'next*'
tags:
- 'v*'
jobs:
cmake:
name: Build with CMake
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- run: git fetch --prune --unshallow --tags
- name: Set environment variables
run: |
echo "ANDROID_NDK_MOUNT_DIR=${HOME}/android-ndk" >> $GITHUB_ENV
echo "LAST_COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "LAST_COMMIT_DATE=$(git log -1 --date=format:%Y%m%d --format=%cd)" >> $GITHUB_ENV
echo "[email protected]" >> $GITHUB_ENV
echo "DEBFULLNAME='Github Actions Android Builder for welle.io'" >> $GITHUB_ENV
echo "DATE=`date +%Y%m%d`" >> $GITHUB_ENV
cat $GITHUB_ENV
- name: Display environment variables
run: env | sort
# qt6-charts-dev is not available in ubuntu 22.04, neither Debian bullseye.
# So we use the packages from a newer repository
- name: "Add repo having qt6-charts-dev"
run: |
if ! dpkg-query -W qt6-charts-dev; then
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ lunar main universe" -y
# Update packages list
sudo apt-get update -qq
fi
- name: Install build dependencies
run: |
set -x
sudo apt-get -y install build-essential cmake libairspy-dev libasound2-dev libfaad-dev libfftw3-dev libmp3lame-dev libmpg123-dev libpulse-dev libqt6opengl6-dev librtlsdr-dev libsoapysdr-dev qt6-base-dev qt6-charts-dev qt6-declarative-dev qt6-multimedia-dev
# Workarounds for packaging bugs
if dpkg --compare-versions $(dpkg-query -W qt6-charts-dev | cut -d " " -f 2) lt 6.4.2-3; then
sudo apt-get -y install qml6-module-qtcharts
fi
if dpkg --compare-versions $(dpkg-query -W qt6-multimedia-dev | cut -d " " -f 2) lt 6.4.2-5; then
sudo apt-get -y install qml6-module-qtquick3d-spatialaudio
fi
- name: Configure welle.io project
run: |
set -x
echo $PWD
mkdir -p build/install_root
cd build
cmake -DRTLSDR=1 -DSOAPYSDR=1 -DAIRSPY=1 -DCMAKE_INSTALL_PREFIX="$(realpath ./install_root)" ..
- name: Build
id: build
run: |
set -x
cd build
make
make install
ls -lR install_root
- name: Archive artifacts (welle.io build dir)
if: always() && steps.build.outcome == 'failure'
uses: actions/upload-artifact@v3
with:
name: welle.io build dir
path: build/*
if-no-files-found: error