mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-04 05:30:32 -05:00 
			
		
		
		
	Appveyor CI: attempt to fix Windows build. Make all build shell scripts conditional to enable external libraries. Added a deployment step for Linux.
This commit is contained in:
		
							parent
							
								
									8a1ed70214
								
							
						
					
					
						commit
						705a99adb5
					
				@ -2,7 +2,6 @@
 | 
				
			|||||||
version: "{build}-{branch}"
 | 
					version: "{build}-{branch}"
 | 
				
			||||||
clone_depth: 1
 | 
					clone_depth: 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# maybe we can add arm
 | 
					 | 
				
			||||||
platform:
 | 
					platform:
 | 
				
			||||||
  - x64
 | 
					  - x64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -10,6 +9,8 @@ matrix:
 | 
				
			|||||||
  fast_finish: false
 | 
					  fast_finish: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
environment:
 | 
					environment:
 | 
				
			||||||
 | 
					#   my_variable:
 | 
				
			||||||
 | 
					#     secure: kyU5TaXRoily6q/QLRLqal2xCFGWEdnb8AJIu7FknsUQyj1wjRGmqC2My+Wfszod
 | 
				
			||||||
  matrix:
 | 
					  matrix:
 | 
				
			||||||
    - TARGET: vs2017gui
 | 
					    - TARGET: vs2017gui
 | 
				
			||||||
      APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
 | 
					      APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
 | 
				
			||||||
@ -18,15 +19,9 @@ environment:
 | 
				
			|||||||
      # CMAKE_CUSTOM_OPTIONS: "-DENABLE_EXTERNAL_LIBRARIES=OFF"
 | 
					      # 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"
 | 
					      CMAKE_CUSTOM_OPTIONS: "-DFORCE_SSE41=ON -DQT_MISSING=OFF -DDEBUG_OUTPUT=ON -DENABLE_MIRISDR=OFF -DENABLE_SERVER=OFF"
 | 
				
			||||||
      CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
 | 
					      CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
 | 
				
			||||||
    # - TARGET: ubuntu1804sse41
 | 
					    - TARGET: ubuntu1804prod
 | 
				
			||||||
    #   APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
 | 
					 | 
				
			||||||
    #   CMAKE_CUSTOM_OPTIONS: "-DFORCE_SSE41=ON"
 | 
					 | 
				
			||||||
    # - TARGET: ubuntu1804server
 | 
					 | 
				
			||||||
    #   APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
 | 
					 | 
				
			||||||
    #   CMAKE_CUSTOM_OPTIONS: "-DBUILD_GUI=OFF"
 | 
					 | 
				
			||||||
    - TARGET: ubuntu1804external
 | 
					 | 
				
			||||||
      APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
 | 
					      APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
 | 
				
			||||||
      CMAKE_CUSTOM_OPTIONS: "-DENABLE_EXTERNAL_LIBRARIES=ON"
 | 
					      CMAKE_CUSTOM_OPTIONS: "-DFORCE_SSE41=ON -DDEBUG_OUTPUT=ON -DENABLE_EXTERNAL_LIBRARIES=ON"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# image:
 | 
					# image:
 | 
				
			||||||
#  - &linux   Ubuntu1804
 | 
					#  - &linux   Ubuntu1804
 | 
				
			||||||
@ -39,16 +34,27 @@ for:
 | 
				
			|||||||
      - C:\ProgramData\chocolatey\bin
 | 
					      - C:\ProgramData\chocolatey\bin
 | 
				
			||||||
      - C:\ProgramData\chocolatey\lib
 | 
					      - C:\ProgramData\chocolatey\lib
 | 
				
			||||||
      #- C:\Tools\vcpkg\installed
 | 
					      #- C:\Tools\vcpkg\installed
 | 
				
			||||||
    install:
 | 
					    build_script:
 | 
				
			||||||
      # the clone doesn't get submodules
 | 
					      - git submodule update --init --recursive
 | 
				
			||||||
      - cmd: git submodule update --init --recursive
 | 
					      - mkdir build && cd build
 | 
				
			||||||
    before_build:
 | 
					      - cmake ..\ -G "%CMAKE_GENERATOR%" %CMAKE_CUSTOM_OPTIONS%
 | 
				
			||||||
      - ps: cmake . -G $(CMAKE_GENERATOR) $(CMAKE_CUSTOM_OPTIONS)
 | 
					      - cmake --build . --config Release --target PACKAGE
 | 
				
			||||||
    build:
 | 
					    artifacts: # push installer executable
 | 
				
			||||||
      parallel: true
 | 
					      path: build\*.exe
 | 
				
			||||||
      project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
 | 
					      name: installer
 | 
				
			||||||
    #test_script:
 | 
					    deploy:
 | 
				
			||||||
      #- ps: '%APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\tests.exe'
 | 
					      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
 | 
				
			||||||
  - matrix:
 | 
					  - matrix:
 | 
				
			||||||
      only:
 | 
					      only:
 | 
				
			||||||
        - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
 | 
					        - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
 | 
				
			||||||
@ -70,11 +76,11 @@ for:
 | 
				
			|||||||
      - 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_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_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_dsdcc.sh; fi
 | 
				
			||||||
      - sh: bash cmake/ci/build_perseus-sdr.sh
 | 
					      - sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_perseus-sdr.sh; fi
 | 
				
			||||||
      - sh: bash cmake/ci/build_xtrx-sdr.sh
 | 
					      - sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_xtrx-sdr.sh; fi
 | 
				
			||||||
      - sh: bash cmake/ci/build_airspyhf.sh
 | 
					      - sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_airspyhf.sh; fi
 | 
				
			||||||
      - sh: bash cmake/ci/build_rtlsdr.sh
 | 
					      - sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_rtlsdr.sh; fi
 | 
				
			||||||
      - sh: bash cmake/ci/build_limesuite.sh
 | 
					      - sh: if [[ ! "${CMAKE_CUSTOM_OPTIONS}" =~ "ENABLE_EXTERNAL_LIBRARIES=ON" ]]; then bash cmake/ci/build_limesuite.sh; fi
 | 
				
			||||||
    before_build:
 | 
					    before_build:
 | 
				
			||||||
      - sh: bash -c export
 | 
					      - sh: bash -c export
 | 
				
			||||||
      - sh: bash -c pwd
 | 
					      - sh: bash -c pwd
 | 
				
			||||||
@ -83,5 +89,20 @@ for:
 | 
				
			|||||||
    test_script:
 | 
					    test_script:
 | 
				
			||||||
      # debian build path
 | 
					      # debian build path
 | 
				
			||||||
      - sh: ./obj-x86_64-linux-gnu/sdrangelbench
 | 
					      - sh: ./obj-x86_64-linux-gnu/sdrangelbench
 | 
				
			||||||
 | 
					    after_build:
 | 
				
			||||||
deploy: off
 | 
					      - 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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user