Skip to content

Test Windows build

Test Windows build #33

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
windows-build:
runs-on: windows-latest
name: Windows
defaults:
run:
shell: msys2 {0}
steps:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
git
make
pacboy: >-
toolchain:p
cmake:p
ninja:p
libusb:p
boost:p
qt6-base:p
qt6-svg:p
spdlog:p
volk:p
libsndfile:p
soapysdr:p
fftw:p
rtl-sdr:p
- name: Clone and build GNU Radio
working-directory: ${{ runner.temp }}
run: |
git clone --depth 1 https://github.com/gnuradio/gnuradio.git
cd gnuradio
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=${RUNNER_TEMP}/msys64/mingw64 \
-DENABLE_DEFAULT=OFF \
-DENABLE_COMMON_PCH=ON \
-DENABLE_GNURADIO_RUNTIME=ON \
-DENABLE_GR_ANALOG=ON \
-DENABLE_GR_AUDIO=ON \
-DENABLE_GR_BLOCKS=ON \
-DENABLE_GR_DIGITAL=ON \
-DENABLE_GR_FFT=ON \
-DENABLE_GR_FILTER=ON \
-DENABLE_GR_NETWORK=ON
cmake --build build
cmake --install build
- name: Clone and build gr-osmosdr
working-directory: ${{ runner.temp }}
run: |
git clone https://gitea.osmocom.org/sdr/gr-osmosdr.git
cd gr-osmosdr
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=${RUNNER_TEMP}/msys64/mingw64 \
-DENABLE_DEFAULT=OFF \
-DENABLE_FILE=ON \
-DENABLE_RTL=ON \
-DENABLE_SOAPY=ON
cmake --build build
cmake --install build
- name: Checkout code
uses: actions/checkout@v3
- name: Configure, compile & install
run: |
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=C:/gqrx
cmake --build build
cmake --install build
- name: Deploy Qt application
run: |
D:/a/_temp/msys64/mingw64/bin/windeployqt6.exe C:/gqrx/bin/gqrx.exe
cp D:/a/_temp/msys64/mingw64/bin/libb2-1.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libboost_program_options-mt.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libboost_thread-mt.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libbrotlicommon.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libbrotlidec.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libbz2-1.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libdouble-conversion.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libfftw3f-3.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libfftw3f_threads-3.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libFLAC.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libfmt.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libfreetype-6.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libgcc_s_seh-1.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libglib-2.0-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libgmp-10.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libgnuradio-*.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libgraphite2.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libharfbuzz-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libiconv-2.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libicudt74.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libicuin74.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libicuuc74.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libintl-8.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libmd4c.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libmp3lame-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libmpg123-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libogg-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libopus-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/liborc-0.4-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libpcre2-16-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libpcre2-8-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libpng16-16.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/librtlsdr.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libsndfile-1.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libSoapySDR.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libspdlog.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libstdc++-6.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libvolk.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libvorbis-0.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libvorbisenc-2.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libwinpthread-1.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/libzstd.dll C:/gqrx/bin/
cp D:/a/_temp/msys64/mingw64/bin/zlib1.dll C:/gqrx/bin/
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: gqrx-windows-${{ github.run_id }}
path: C:/gqrx/bin