Skip to content
Permalink
Browse files

An experiment

  • Loading branch information
nyalldawson committed Mar 22, 2021
1 parent 11d0adb commit 6596dfa5588d5b69a5c785bc8a78aaeb2d51d780
Showing with 109 additions and 0 deletions.
  1. +34 −0 .docker/docker-qgis-build-qt6.sh
  2. +37 −0 .docker/qgis3-qt6-build-deps.dockerfile
  3. +38 −0 .github/workflows/qt6.yml
@@ -0,0 +1,34 @@

mkdir /usr/src/qgis/build
cd /usr/src/qgis/build || exit -1

CLANG_WARNINGS="-Wrange-loop-construct"

cmake -GNinja \
-DWITH_QUICK=OFF \
-DWITH_3D=ON \
-DWITH_STAGED_PLUGINS=ON \
-DWITH_GRASS=OFF \
-DSUPPRESS_QT_WARNINGS=ON \
-DENABLE_MODELTEST=ON \
-DENABLE_PGTEST=ON \
-DENABLE_SAGA_TESTS=ON \
-DENABLE_MSSQLTEST=ON \
-DWITH_QSPATIALITE=OFF \
-DWITH_QWTPOLAR=OFF \
-DWITH_APIDOC=OFF \
-DWITH_ASTYLE=OFF \
-DWITH_CUSTOM_WIDGETS=ON \
-DWITH_DESKTOP=ON \
-DWITH_BINDINGS=ON \
-DWITH_SERVER=ON \
-DWITH_ORACLE=OFF \
-DDISABLE_DEPRECATED=ON \
-DCXX_EXTRA_FLAGS="${CLANG_WARNINGS}" \
-DCMAKE_C_COMPILER=/bin/clang \
-DCMAKE_CXX_COMPILER=/bin/clang++ \
-DADD_CLAZY_CHECKS=ON \
-DWERROR=TRUE \
..

ninja
@@ -0,0 +1,37 @@
FROM fedora:rawhide
MAINTAINER Matthias Kuhn <matthias@opengis.ch>

RUN dnf -y install \
bison \
clang \
clazy \
exiv2-devel \
fcgi-devel \
flex \
gdal-devel \
geos-devel \
gsl-devel \
libpq-devel \
libspatialite-devel \
libzip-devel \
libzstd-devel \
ninja-build \
proj-devel \
protobuf-devel \
protobuf-lite-devel \
python3-pyqt5-sip \
python3-qscintilla-qt5 \
python3-qt5-devel \
qca-qt5-devel \
qscintilla-qt5-devel \
qt5-qt3d-devel \
qt5-qtbase-devel \
qt5-qtlocation-devel \
qt5-qtserialport-devel \
qt5-qttools-static \
qt5-qtwebkit-devel \
qtkeychain-qt5-devel \
qwt-qt5-devel \
spatialindex-devel \
sqlite-devel \
unzip
@@ -0,0 +1,38 @@
name: Build with Qt 6

on:
push:
branches:
- master
- release-**
paths:
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'
- '.github/workflows/**'
- '.ci/**'
pull_request:
branches:
- master
- release-**
paths:
- 'src/**'
- 'tests/**'
- 'CMakeLists.txt'
- '.github/workflows/**'
- '.ci/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup build dependencies
run: |
docker build -t qgis_build_deps -f .docker/qgis3-qt6-build-deps.dockerfile .
- name: Run build
run: |
docker run -v $(pwd):/usr/src/qgis qgis_build_deps /usr/src/qgis/.docker/docker-qgis-build-qt6.sh

0 comments on commit 6596dfa

Please sign in to comment.