Browse Source

Setup Qt with CI

Signed-off-by: falkTX <falktx@falktx.com>
pull/25/head
falkTX 3 years ago
parent
commit
b25ec50eae
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 82 additions and 78 deletions
  1. +36
    -36
      .github/workflows/bootstrap.yml
  2. +3
    -7
      bootstrap-qt.sh
  3. +2
    -2
      patches/qtbase/win32/02_std-numeric-limits.patch
  4. +41
    -33
      setup/versions.sh

+ 36
- 36
.github/workflows/bootstrap.yml View File

@@ -133,12 +133,12 @@ jobs:
needs: common needs: common
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up cache
uses: actions/cache@v2
with:
path: |
~/PawPawBuilds
key: plugins-${{ matrix.target }}-v${{ env.CACHE_VERSION }}
#- name: Set up cache
#uses: actions/cache@v2
#with:
#path: |
#~/PawPawBuilds
#key: plugins-${{ matrix.target }}-v${{ env.CACHE_VERSION }}
- name: (apt) Restore debian package cache - name: (apt) Restore debian package cache
if: ${{ matrix.installer == 'apt' }} if: ${{ matrix.installer == 'apt' }}
run: | run: |
@@ -195,18 +195,18 @@ jobs:
run: | run: |
cd ~/PawPawBuilds && \ cd ~/PawPawBuilds && \
tar xf common-${{ matrix.target }}.tar.gz tar xf common-${{ matrix.target }}.tar.gz
- name: Run bootstrap
shell: bash
run: |
./bootstrap-plugins.sh ${{ matrix.target }} && ./.cleanup.sh ${{ matrix.target }}
- name: Pack bootstrap build
shell: bash
run: |
tar -C ~/PawPawBuilds -czf plugins-${{ matrix.target }}.tar.gz builds targets
- uses: actions/upload-artifact@v2
with:
name: plugins-${{ matrix.target }}
path: plugins-${{ matrix.target }}.tar.gz
#- name: Run bootstrap
#shell: bash
#run: |
#./bootstrap-plugins.sh ${{ matrix.target }} && ./.cleanup.sh ${{ matrix.target }}
#- name: Pack bootstrap build
#shell: bash
#run: |
#tar -C ~/PawPawBuilds -czf plugins-${{ matrix.target }}.tar.gz builds targets
#- uses: actions/upload-artifact@v2
#with:
#name: plugins-${{ matrix.target }}
#path: plugins-${{ matrix.target }}.tar.gz


jack2: jack2:
strategy: strategy:
@@ -327,12 +327,12 @@ jobs:
needs: common needs: common
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
#- name: Set up cache
#uses: actions/cache@v2
#with:
#path: |
#~/PawPawBuilds
#key: qt-${{ matrix.target }}-v${{ env.CACHE_VERSION }}
- name: Set up cache
uses: actions/cache@v2
with:
path: |
~/PawPawBuilds
key: qt-${{ matrix.target }}-v${{ env.CACHE_VERSION }}
- name: (apt) Restore debian package cache - name: (apt) Restore debian package cache
if: ${{ matrix.installer == 'apt' }} if: ${{ matrix.installer == 'apt' }}
run: | run: |
@@ -389,18 +389,18 @@ jobs:
run: | run: |
cd ~/PawPawBuilds && \ cd ~/PawPawBuilds && \
tar xf common-${{ matrix.target }}.tar.gz tar xf common-${{ matrix.target }}.tar.gz
#- name: Run bootstrap
#shell: bash
#run: |
#./bootstrap-qt.sh ${{ matrix.target }} && ./.cleanup.sh ${{ matrix.target }}
#- name: Pack bootstrap build
#shell: bash
#run: |
#tar -C ~/PawPawBuilds -czf qt-${{ matrix.target }}.tar.gz builds targets
#- uses: actions/upload-artifact@v2
#with:
#name: qt-${{ matrix.target }}
#path: qt-${{ matrix.target }}.tar.gz
- name: Run bootstrap
shell: bash
run: |
./bootstrap-qt.sh ${{ matrix.target }} && ./.cleanup.sh ${{ matrix.target }}
- name: Pack bootstrap build
shell: bash
run: |
tar -C ~/PawPawBuilds -czf qt-${{ matrix.target }}.tar.gz builds targets
- uses: actions/upload-artifact@v2
with:
name: qt-${{ matrix.target }}
path: qt-${{ matrix.target }}.tar.gz


carla: carla:
strategy: strategy:


+ 3
- 7
bootstrap-qt.sh View File

@@ -47,7 +47,7 @@ function download_qt() {
local dlfolder="${PAWPAW_BUILDDIR}/${name}${qtsuffix}-${QT5_VERSION}" local dlfolder="${PAWPAW_BUILDDIR}/${name}${qtsuffix}-${QT5_VERSION}"


if [ ! -f "${dlfile}" ]; then if [ ! -f "${dlfile}" ]; then
dlurl="https://download.qt.io/archive/qt/${QT5_MVERSION}/${QT5_VERSION}/submodules/${name}${qtsuffix}-${QT5_VERSION}.tar.xz"
dlurl="${QT5_URL}/${name}${qtsuffix}-${QT5_VERSION}.tar.xz"
curl -L "${dlurl}" -o "${dlfile}" curl -L "${dlurl}" -o "${dlfile}"
fi fi


@@ -105,12 +105,7 @@ function build_qt_conf() {


if [ ! -f "${pkgdir}/.stamp_built" ]; then if [ ! -f "${pkgdir}/.stamp_built" ]; then
pushd "${pkgdir}" pushd "${pkgdir}"
# NOTE: Qt win32 builds are very verbose, too many warnings, which makes CI build fail
if [ "${WIN32}" -eq 1 ] && [ -n "${TRAVIS_BUILD_DIR}" ]; then
make ${MAKE_ARGS} 2>/dev/null
else
make ${MAKE_ARGS}
fi
make ${MAKE_ARGS}
touch .stamp_built touch .stamp_built
popd popd
fi fi
@@ -277,6 +272,7 @@ elif [ "${MACOS}" -eq 1 ]; then
fi fi
if [ "${WIN32}" -eq 1 ]; then if [ "${WIN32}" -eq 1 ]; then
patch_file qtbase${qtsuffix} ${QT5_VERSION} "mkspecs/win32-g++/qmake.conf" 's/= -shared/= -static -shared/' patch_file qtbase${qtsuffix} ${QT5_VERSION} "mkspecs/win32-g++/qmake.conf" 's/= -shared/= -static -shared/'
patch_file qtbase${qtsuffix} ${QT5_VERSION} "mkspecs/win32-g++/qmake.conf" 's/= -fno-keep-inline-dllexport/= -Wdeprecated-copy -Wno-deprecated-declarations -fno-keep-inline-dllexport/'
patch_file qtbase${qtsuffix} ${QT5_VERSION} "src/plugins/platforms/direct2d/direct2d.pro" 's/-lVersion/-lversion/' patch_file qtbase${qtsuffix} ${QT5_VERSION} "src/plugins/platforms/direct2d/direct2d.pro" 's/-lVersion/-lversion/'
fi fi




+ 2
- 2
patches/qtbase/win32/02_std-numeric-limits.patch View File

@@ -8,5 +8,5 @@ index 35c35ac6..38c08ccb 100644
# include <utility> # include <utility>
+# include <limits> +# include <limits>
#endif #endif
#include <stddef.h>
#ifndef __ASSEMBLER__
# include <assert.h>

+ 41
- 33
setup/versions.sh View File

@@ -9,81 +9,84 @@ XIPH_URL=https://downloads.xiph.org/releases
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# bootstrap base # bootstrap base


PKG_CONFIG_URL=https://pkg-config.freedesktop.org/releases
PKG_CONFIG_VERSION=0.28 PKG_CONFIG_VERSION=0.28
PKG_CONFIG_URL=https://pkg-config.freedesktop.org/releases


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# bootstrap common # bootstrap common


LIBOGG_URL=${XIPH_URL}/ogg
LIBOGG_VERSION=1.3.5 LIBOGG_VERSION=1.3.5
LIBOGG_URL=${XIPH_URL}/ogg


LIBVORBIS_URL=${XIPH_URL}/vorbis
LIBVORBIS_VERSION=1.3.7 LIBVORBIS_VERSION=1.3.7
LIBVORBIS_URL=${XIPH_URL}/vorbis


FLAC_URL=${XIPH_URL}/flac
FLAC_VERSION=1.3.3 FLAC_VERSION=1.3.3
FLAC_URL=${XIPH_URL}/flac


OPUS_URL=https://archive.mozilla.org/pub/opus
OPUS_VERSION=1.3.1 OPUS_VERSION=1.3.1
OPUS_URL=https://archive.mozilla.org/pub/opus


LIBSNDFILE_URL=https://github.com/libsndfile/libsndfile/releases/download/1.0.31
LIBSNDFILE_VERSION=1.0.31 LIBSNDFILE_VERSION=1.0.31
LIBSNDFILE_URL=https://github.com/libsndfile/libsndfile/releases/download/${LIBSNDFILE_VERSION}


LIBSAMPLERATE_URL=http://www.mega-nerd.com/SRC
LIBSAMPLERATE_VERSION=0.1.9 LIBSAMPLERATE_VERSION=0.1.9
LIBSAMPLERATE_URL=http://www.mega-nerd.com/SRC


ZLIB_URL=https://github.com/madler/zlib.git
ZLIB_VERSION=cacf7f1d4e3d44d871b605da3b647f07d718623f # 1.2.11 ZLIB_VERSION=cacf7f1d4e3d44d871b605da3b647f07d718623f # 1.2.11
ZLIB_URL=https://github.com/madler/zlib.git


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# bootstrap plugins # bootstrap plugins


FFTW_URL=http://www.fftw.org
FFTW_VERSION=3.3.10 FFTW_VERSION=3.3.10
FFTW_URL=http://www.fftw.org


GLIB_URL=http://download.gnome.org/sources/glib/2.22
GLIB_MVERSION=2.22
GLIB_VERSION=2.22.5
GLIB_MVERSION=2.71
GLIB_VERSION=2.71.0
GLIB_URL=https://download.gnome.org/sources/glib/${GLIB_MVERSION}

# FIXME
GLIB_TAR_EXT=tar.xz


LIBLO_URL=http://download.sourceforge.net/liblo
LIBLO_VERSION=0.31 LIBLO_VERSION=0.31
LIBLO_URL=http://download.sourceforge.net/liblo


PCRE_URL=https://ftp.pcre.org/pub/pcre
PCRE_VERSION=8.44
PCRE_VERSION=8.45
PCRE_URL=http://download.sourceforge.net/pcre


LV2_URL=https://gitlab.com/lv2/lv2.git
LV2_VERSION=6cefc7df1a6158c79d23029df183c09b10b88cad LV2_VERSION=6cefc7df1a6158c79d23029df183c09b10b88cad
LV2_URL=https://gitlab.com/lv2/lv2.git


SERD_URL=${DROBILLA_URL}
SERD_VERSION=0.30.8 SERD_VERSION=0.30.8
SERD_URL=${DROBILLA_URL}


SORD_URL=${DROBILLA_URL}
SORD_VERSION=0.16.8 SORD_VERSION=0.16.8
SORD_URL=${DROBILLA_URL}


SRATOM_URL=${DROBILLA_URL}
SRATOM_VERSION=0.6.8 SRATOM_VERSION=0.6.8
SRATOM_URL=${DROBILLA_URL}


LILV_URL=${DROBILLA_URL}
LILV_VERSION=0.24.12 LILV_VERSION=0.24.12
LILV_URL=${DROBILLA_URL}


LV2LINT_URL=https://gitlab.com/OpenMusicKontrollers/lv2lint/-/archive/0.14.0
LV2LINT_VERSION=0.14.0 LV2LINT_VERSION=0.14.0
LV2LINT_URL=https://gitlab.com/OpenMusicKontrollers/lv2lint/-/archive/${LV2LINT_VERSION}


KXSTUDIO_LV2_EXTENSIONS_URL=https://github.com/KXStudio/LV2-Extensions.git
KXSTUDIO_LV2_EXTENSIONS_VERSION=4f6802f9f0ac9f5e2a909e4ab2cfbf71648a1b1d KXSTUDIO_LV2_EXTENSIONS_VERSION=4f6802f9f0ac9f5e2a909e4ab2cfbf71648a1b1d
KXSTUDIO_LV2_EXTENSIONS_URL=https://github.com/KXStudio/LV2-Extensions.git


MOD_SDK_URL=https://github.com/moddevices/mod-sdk.git
MOD_SDK_VERSION=21a80729dde1439dcea03bfafbc42981fb503d8a MOD_SDK_VERSION=21a80729dde1439dcea03bfafbc42981fb503d8a
MOD_SDK_URL=https://github.com/moddevices/mod-sdk.git


FLUIDSYNTH_URL=https://github.com/FluidSynth/fluidsynth.git
FLUIDSYNTH_VERSION=f65c6ba25fb2c7e37c89fc6a4afc5aa645e208c2 # 1.1.11 FLUIDSYNTH_VERSION=f65c6ba25fb2c7e37c89fc6a4afc5aa645e208c2 # 1.1.11
FLUIDSYNTH_URL=https://github.com/FluidSynth/fluidsynth.git


MXML_URL=https://github.com/michaelrsweet/mxml.git
MXML_VERSION=38b044ed8ca2a611ed9ed3e26c4b46416335194e # 3.2 MXML_VERSION=38b044ed8ca2a611ed9ed3e26c4b46416335194e # 3.2
MXML_URL=https://github.com/michaelrsweet/mxml.git


CARLA_URL=https://github.com/falkTX/Carla.git
CARLA_VERSION=613e6950581ad0cb3c037fac7f0db89633e099e6 CARLA_VERSION=613e6950581ad0cb3c037fac7f0db89633e099e6
CARLA_URL=https://github.com/falkTX/Carla.git


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# check if lv2lint is supported # check if lv2lint is supported
@@ -100,19 +103,24 @@ fi
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# bootstrap qt stuff # bootstrap qt stuff


if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
QT5_VERSION=5.12.11
if [ "${MACOS_UNIVERSAL}" -eq 1 ] || [ "${WIN32}" -eq 1 ]; then
QT5_VERSION=5.12.12
QT5_MVERSION=5.12 QT5_MVERSION=5.12
else else
QT5_VERSION=5.9.8 QT5_VERSION=5.9.8
QT5_MVERSION=5.9 QT5_MVERSION=5.9
fi fi


QT5_URL=https://download.qt.io/archive/qt/${QT5_MVERSION}/${QT5_VERSION}/submodules

# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# bootstrap carla # bootstrap carla


FILE_VERSION=5.34 FILE_VERSION=5.34
FILE_URL=ftp://ftp.astron.com/pub/file

LIBFFI_VERSION=3.3 LIBFFI_VERSION=3.3
LIBFFI_URL=https://sourceware.org/pub/libffi


if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then if [ "${MACOS_UNIVERSAL}" -eq 1 ]; then
CXFREEZE_VERSION=e1c33afea842bc61dac82145a8a0be5fbd318a92 # 6.4.2 CXFREEZE_VERSION=e1c33afea842bc61dac82145a8a0be5fbd318a92 # 6.4.2
@@ -144,19 +152,19 @@ fi
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# bootstrap jack # bootstrap jack


AFTEN_URL=http://downloads.sourceforge.net/aften
AFTEN_VERSION=0.0.8 AFTEN_VERSION=0.0.8
AFTEN_URL=http://downloads.sourceforge.net/aften


DB_URL=https://download.oracle.com/berkeley-db
DB_VERSION=5.3.28 DB_VERSION=5.3.28
DB_URL=https://download.oracle.com/berkeley-db


PORTAUDIO_URL=http://deb.debian.org/debian/pool/main/p/portaudio19
PORTAUDIO_VERSION=19.6.0 PORTAUDIO_VERSION=19.6.0
PORTAUDIO_URL=http://deb.debian.org/debian/pool/main/p/portaudio19


RTAUDIO_URL=https://github.com/falkTX/rtaudio.git
RTAUDIO_VERSION=e03448bd15c1c34e842459939d755f5f89e880ed RTAUDIO_VERSION=e03448bd15c1c34e842459939d755f5f89e880ed
RTAUDIO_URL=https://github.com/falkTX/rtaudio.git


TRE_URL=https://github.com/laurikari/tre.git
TRE_VERSION=6092368aabdd0dbb0fbceb2766a37b98e0ff6911 TRE_VERSION=6092368aabdd0dbb0fbceb2766a37b98e0ff6911
TRE_URL=https://github.com/laurikari/tre.git


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save