2019-05-23 17:25:47 +00:00
|
|
|
---
|
|
|
|
version: "{build}-{branch}"
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: false
|
|
|
|
|
|
|
|
environment:
|
2020-02-29 08:48:22 +00:00
|
|
|
# my_variable:
|
|
|
|
# secure: kyU5TaXRoily6q/QLRLqal2xCFGWEdnb8AJIu7FknsUQyj1wjRGmqC2My+Wfszod
|
2019-05-23 17:25:47 +00:00
|
|
|
matrix:
|
|
|
|
- TARGET: vs2017gui
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
|
|
|
# RelWithDebInfo
|
|
|
|
configuration: Release
|
2020-02-27 13:12:30 +00:00
|
|
|
# CMAKE_CUSTOM_OPTIONS: "-DENABLE_EXTERNAL_LIBRARIES=OFF"
|
2020-09-29 06:42:11 +00:00
|
|
|
CMAKE_CUSTOM_OPTIONS: "-DFORCE_SSE41=ON -DQT_MISSING=OFF -DDEBUG_OUTPUT=ON -DENABLE_MIRISDR=OFF -DBUILD_SERVER=OFF"
|
2019-05-23 17:25:47 +00:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
|
2020-05-16 16:06:31 +00:00
|
|
|
- TARGET: ubuntu2004prod
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
|
|
|
|
CMAKE_CUSTOM_OPTIONS: "-DFORCE_SSE41=ON -DDEBUG_OUTPUT=ON -DENABLE_EXTERNAL_LIBRARIES=ON"
|
2019-05-23 17:25:47 +00:00
|
|
|
|
|
|
|
# image:
|
|
|
|
# - &linux Ubuntu1804
|
|
|
|
# - matrix: { only: [ image: *linux ] }
|
|
|
|
for:
|
|
|
|
- matrix:
|
|
|
|
only:
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
|
|
|
|
cache:
|
|
|
|
- C:\ProgramData\chocolatey\bin
|
|
|
|
- C:\ProgramData\chocolatey\lib
|
|
|
|
#- C:\Tools\vcpkg\installed
|
2020-02-29 08:48:22 +00:00
|
|
|
build_script:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- mkdir build && cd build
|
|
|
|
- cmake ..\ -G "%CMAKE_GENERATOR%" %CMAKE_CUSTOM_OPTIONS%
|
|
|
|
- cmake --build . --config Release --target PACKAGE
|
|
|
|
artifacts: # push installer executable
|
|
|
|
path: build\*.exe
|
|
|
|
name: installer
|
|
|
|
deploy:
|
|
|
|
release: sdrangel-v$(appveyor_build_version)
|
|
|
|
description: 'SDRangel Windows'
|
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: kyU5TaXRoily6q/QLRLqal2xCFGWEdnb8AJIu7FknsUQyj1wjRGmqC2My+Wfszod
|
|
|
|
artifact: installer, portable
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
tag: $(APPVEYOR_REPO_TAG_NAME) # will not work until tag is pushed
|
|
|
|
on:
|
|
|
|
APPVEYOR_REPO_TAG: true # deploy on tag push only
|
|
|
|
branch: master # release from master branch only
|
2020-05-16 16:06:31 +00:00
|
|
|
- matrix:
|
|
|
|
only:
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
|
|
|
|
cache:
|
|
|
|
- $HOME/external/
|
|
|
|
install:
|
|
|
|
- sh: sudo apt-get update
|
|
|
|
# not sdrplay with soapysdr; libairspyhf-dev is too old (no lna)
|
|
|
|
- sh: |
|
|
|
|
sudo apt-get -y install build-essential cmake git \
|
|
|
|
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libqt5opengl5-dev \
|
|
|
|
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \
|
2020-10-27 19:57:24 +00:00
|
|
|
libqt5quick5 \
|
2020-10-27 17:03:24 +00:00
|
|
|
qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-window2 qml-module-qtquick-dialogs \
|
2020-10-27 17:07:03 +00:00
|
|
|
qml-module-qtquick-controls qml-module-qtquick-layouts \
|
|
|
|
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-dev \
|
2020-05-16 16:06:31 +00:00
|
|
|
libusb-1.0-0-dev libboost-all-dev libasound2-dev libopencv-dev libopencv-imgcodecs-dev \
|
|
|
|
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \
|
|
|
|
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \
|
2020-10-05 22:05:17 +00:00
|
|
|
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev \
|
2020-10-04 08:43:41 +00:00
|
|
|
python3-mako python3-cheetah python3-numpy \
|
2020-05-16 16:06:31 +00:00
|
|
|
autoconf automake libtool
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_cm256cc.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_mbelib.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_serialdv.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_dsdcc.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_perseus-sdr.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_xtrx-sdr.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_airspyhf.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_rtlsdr.sh; fi
|
|
|
|
- sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_limesuite.sh; fi
|
|
|
|
before_build:
|
|
|
|
- sh: bash -c export
|
|
|
|
- sh: bash -c pwd
|
|
|
|
build_script:
|
|
|
|
- sh: bash cmake/ci/build_sdrangel.sh
|
|
|
|
test_script:
|
|
|
|
# debian build path
|
|
|
|
- sh: ./obj-x86_64-linux-gnu/sdrangelbench
|
|
|
|
after_build:
|
|
|
|
- sh: mkdir sdrangel-${APPVEYOR_BUILD_VERSION}
|
|
|
|
- sh: cp ../*.deb ../*.build ../*.buildinfo ../*.changes sdrangel-${APPVEYOR_BUILD_VERSION}
|
|
|
|
- sh: tar -czf sdrangel-${APPVEYOR_BUILD_VERSION}.tar.gz sdrangel-${APPVEYOR_BUILD_VERSION}
|
|
|
|
- sh: appveyor PushArtifact sdrangel-${APPVEYOR_BUILD_VERSION}.tar.gz -DeploymentName archive
|
|
|
|
deploy:
|
|
|
|
release: sdrangel-v$(appveyor_build_version)
|
|
|
|
description: 'SDRangel Ubuntu 20.04'
|
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: kyU5TaXRoily6q/QLRLqal2xCFGWEdnb8AJIu7FknsUQyj1wjRGmqC2My+Wfszod
|
|
|
|
artifact: archive
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
APPVEYOR_REPO_TAG: true # deploy on tag push only
|
|
|
|
branch: master # release from master branch only
|