kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
				
				
				
			Added CI for debian 10 and 11
							rodzic
							
								
									5322a4632c
								
							
						
					
					
						commit
						a4ce0c8868
					
				| 
						 | 
					@ -12,7 +12,7 @@ jobs:
 | 
				
			||||||
        # well on Windows or Mac.  You can convert this to a matrix build if you need
 | 
					        # well on Windows or Mac.  You can convert this to a matrix build if you need
 | 
				
			||||||
        # cross-platform coverage.
 | 
					        # cross-platform coverage.
 | 
				
			||||||
        # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
 | 
					        # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
 | 
				
			||||||
        runs-on: ubuntu-latest
 | 
					        runs-on: ubuntu-20.04
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        steps:
 | 
					        steps:
 | 
				
			||||||
        - uses: actions/checkout@v2
 | 
					        - uses: actions/checkout@v2
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,7 @@ jobs:
 | 
				
			||||||
          working-directory: ${{runner.workspace}}/build
 | 
					          working-directory: ${{runner.workspace}}/build
 | 
				
			||||||
          shell: bash
 | 
					          shell: bash
 | 
				
			||||||
          # Execute the build.  You can specify a specific target with "--target <NAME>"
 | 
					          # Execute the build.  You can specify a specific target with "--target <NAME>"
 | 
				
			||||||
          run: cmake --build . --config $BUILD_TYPE
 | 
					          run: cmake --build . --config $BUILD_TYPE -j2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        - name: Create Deb Archive
 | 
					        - name: Create Deb Archive
 | 
				
			||||||
          working-directory: ${{runner.workspace}}
 | 
					          working-directory: ${{runner.workspace}}
 | 
				
			||||||
| 
						 | 
					@ -51,7 +51,7 @@ jobs:
 | 
				
			||||||
        - name: Save Deb Archive
 | 
					        - name: Save Deb Archive
 | 
				
			||||||
          uses: actions/upload-artifact@v2
 | 
					          uses: actions/upload-artifact@v2
 | 
				
			||||||
          with:
 | 
					          with:
 | 
				
			||||||
              name: sdrpp_debian_amd64
 | 
					              name: sdrpp_ubuntu20.04_amd64
 | 
				
			||||||
              path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
 | 
					              path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    build_windows:
 | 
					    build_windows:
 | 
				
			||||||
| 
						 | 
					@ -97,4 +97,46 @@ jobs:
 | 
				
			||||||
          uses: actions/upload-artifact@v2
 | 
					          uses: actions/upload-artifact@v2
 | 
				
			||||||
          with:
 | 
					          with:
 | 
				
			||||||
              name: sdrpp_windows_x64
 | 
					              name: sdrpp_windows_x64
 | 
				
			||||||
              path: ${{runner.workspace}}/sdrpp_windows_x64.zip
 | 
					              path: ${{runner.workspace}}/sdrpp_windows_x64.zip
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					    build_debian10:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					        - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        - name: Create Docker Image
 | 
				
			||||||
 | 
					          run: cd $GITHUB_WORKSPACE/docker_builds/debian10 && docker build . --tag sdrpp_build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        - name: Run Container
 | 
				
			||||||
 | 
					          run: docker run --name build -it sdrpp_build /root/do_build.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        - name: Recover Deb Archive
 | 
				
			||||||
 | 
					          run: docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        - name: Save Deb Archive
 | 
				
			||||||
 | 
					          uses: actions/upload-artifact@v2
 | 
				
			||||||
 | 
					          with:
 | 
				
			||||||
 | 
					              name: sdrpp_debian10_amd64
 | 
				
			||||||
 | 
					              path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    build_debian11:
 | 
				
			||||||
 | 
					        runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        steps:
 | 
				
			||||||
 | 
					        - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        - name: Create Docker Image
 | 
				
			||||||
 | 
					          run: cd $GITHUB_WORKSPACE/docker_builds/debian11 && docker build . --tag sdrpp_build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        - name: Run Container
 | 
				
			||||||
 | 
					          run: docker run --name build -it sdrpp_build /root/do_build.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        - name: Recover Deb Archive
 | 
				
			||||||
 | 
					          run: docker cp build:/root/SDRPlusPlus/sdrpp_debian_amd64.deb ./
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        - name: Save Deb Archive
 | 
				
			||||||
 | 
					          uses: actions/upload-artifact@v2
 | 
				
			||||||
 | 
					          with:
 | 
				
			||||||
 | 
					              name: sdrpp_debian11_amd64
 | 
				
			||||||
 | 
					              path: ${{runner.workspace}}/sdrpp_debian_amd64.deb
 | 
				
			||||||
| 
						 | 
					@ -79,8 +79,6 @@ else()
 | 
				
			||||||
        ${VOLK_LIBRARIES}
 | 
					        ${VOLK_LIBRARIES}
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    message(${VOLK_LIBRARIES})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 | 
					    if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 | 
				
			||||||
        target_link_libraries(sdrpp_core PUBLIC stdc++fs)
 | 
					        target_link_libraries(sdrpp_core PUBLIC stdc++fs)
 | 
				
			||||||
    endif ()
 | 
					    endif ()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					FROM debian:10
 | 
				
			||||||
 | 
					COPY do_build.sh /root
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					set -e
 | 
				
			||||||
 | 
					cd /root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					apt update
 | 
				
			||||||
 | 
					apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libglew-dev libvolk1-dev libsoapysdr-dev libairspyhf-dev libairspy-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					git clone https://github.com/AlexandreRouma/SDRPlusPlus
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd SDRPlusPlus
 | 
				
			||||||
 | 
					mkdir build
 | 
				
			||||||
 | 
					cd build
 | 
				
			||||||
 | 
					cmake ..
 | 
				
			||||||
 | 
					make -j2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd ..
 | 
				
			||||||
 | 
					sh make_debian_package.sh ./build
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,2 @@
 | 
				
			||||||
 | 
					FROM debian:11
 | 
				
			||||||
 | 
					COPY do_build.sh /root
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					set -e
 | 
				
			||||||
 | 
					cd /root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					apt update
 | 
				
			||||||
 | 
					apt install -y build-essential cmake git libfftw3-dev libglfw3-dev libglew-dev libvolk2-dev libsoapysdr-dev libairspyhf-dev libairspy-dev libiio-dev libad9361-dev librtaudio-dev libhackrf-dev librtlsdr-dev
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					git clone https://github.com/AlexandreRouma/SDRPlusPlus
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd SDRPlusPlus
 | 
				
			||||||
 | 
					mkdir build
 | 
				
			||||||
 | 
					cd build
 | 
				
			||||||
 | 
					cmake ..
 | 
				
			||||||
 | 
					make -j2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cd ..
 | 
				
			||||||
 | 
					sh make_debian_package.sh ./build
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue