Skip to content

Commit 5a1c4c9

Browse files
committed
Add CI checks for SoapySDR versions
1 parent 1aac82a commit 5a1c4c9

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
macos_build_job:
8+
macos_ci:
99
strategy:
1010
fail-fast: false
1111
matrix:
@@ -21,21 +21,41 @@ jobs:
2121
cmake -B build
2222
cmake --build build
2323
24-
linux_build_job:
24+
linux_ci:
2525
strategy:
2626
fail-fast: false
2727
matrix:
2828
os: [ubuntu-22.04, ubuntu-24.04]
29+
build_type: [Release, Debug]
30+
soapy: [0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1]
2931
runs-on: ${{ matrix.os }}
3032
name: Build on ${{ matrix.os }}
33+
env:
34+
INSTALL_PREFIX: /usr/local
3135
steps:
3236
- uses: actions/checkout@v4
3337
- name: Setup tools
3438
run: |
3539
sudo apt-get update -q -y
3640
sudo apt-get install -y --no-install-recommends cmake ninja-build
37-
sudo apt-get install -q -y libsoapysdr-dev
41+
# sudo apt-get install -q -y libsoapysdr-dev
42+
- name: Install dependencies
43+
run: |
44+
# Build against all supported SoapySDR versions
45+
git clone https://github.com/pothosware/SoapySDR -b soapy-sdr-${{matrix.soapy}}
46+
cd SoapySDR
47+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DENABLE_PYTHON=OFF -DENABLE_PYTHON3=OFF -B build
48+
cmake --build build
49+
sudo cmake --build build -- install
50+
sudo ldconfig
51+
3852
- name: Build
3953
run: |
40-
cmake -GNinja -B build
54+
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -GNinja -B build
4155
cmake --build build
56+
sudo cmake --build build -- install
57+
58+
- name: Test module registration
59+
run: |
60+
SoapySDRUtil --info
61+
SoapySDRUtil --check=rtltcp

0 commit comments

Comments
 (0)