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"
|
|
|
|
CMAKE_CUSTOM_OPTIONS: "-DFORCE_SSE41=ON -DQT_MISSING=OFF -DDEBUG_OUTPUT=ON -DENABLE_MIRISDR=OFF -DENABLE_SERVER=OFF"
|
2019-05-23 17:25:47 +00:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
|
2020-02-29 08:48:22 +00:00
|
|
|
- TARGET: ubuntu1804prod
|
2019-05-23 17:25:47 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
|
2020-02-29 08:48:22 +00:00
|
|
|
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
|
2019-05-23 17:25:47 +00:00
|
|
|
- matrix:
|
|
|
|
only:
|
|
|
|
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
|
|
|
|
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 \
|
2019-06-09 17:51:59 +00:00
|
|
|
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \
|
2020-02-27 13:12:30 +00:00
|
|
|
libusb-1.0-0-dev libboost-all-dev libasound2-dev libopencv-dev libopencv-imgcodecs-dev \
|
2019-05-31 23:13:36 +00:00
|
|
|
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \
|
2019-05-23 17:25:47 +00:00
|
|
|
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \
|
2020-02-27 13:12:30 +00:00
|
|
|
libbladerf-dev libsoapysdr-dev libiio-dev \
|
2019-05-23 17:25:47 +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
|
2020-02-29 08:48:22 +00:00
|
|
|
- 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
|
2019-05-23 17:25:47 +00:00
|
|
|
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
|
2020-02-29 08:48:22 +00:00
|
|
|
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 18.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
|