Skip to content

Commit ab40eed

Browse files
committed
ci: use a matrix for modern ubuntu versions
1 parent b695dad commit ab40eed

File tree

1 file changed

+8
-36
lines changed

1 file changed

+8
-36
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ jobs:
2424
- uses: quentinguidee/pep8-action@v1
2525
with:
2626
arguments: '--max-line-length=120 --ignore E265,E266,E402,E501,E704,E712,E713,E714,E711,E722,E741,W504,W605 --exclude *.yml.py,docs/*,python/bindings/* --filename=*.py,iridium-extractor'
27-
ubuntu-24-04:
28-
name: Ubuntu 24.04
29-
runs-on: ubuntu-24.04
27+
ubuntu:
28+
name: Ubuntu
29+
strategy:
30+
matrix:
31+
os: [ubuntu-22.04, ubuntu-24.04]
32+
packets: ["gnuradio-dev cmake libsndfile1-dev", "gnuradio-dev cmake"]
33+
runs-on: ${{matrix.os}}
3034
steps:
3135
- uses: actions/checkout@v4
3236

3337
- name: Install GNU Radio
3438
run: |
3539
sudo apt update
36-
sudo apt install gnuradio-dev cmake
40+
sudo apt install ${{matrix.packets}}
3741
- name: Build
3842
run: |
3943
cmake -B build
@@ -57,38 +61,6 @@ jobs:
5761
iridium-extractor examples/hackrf-10msps.conf 2>&1 | tee stderr-out
5862
cat stderr-out | grep "RuntimeError: Failed to use '0' as HackRF device index: not enough devices"
5963
60-
ubuntu-22-04:
61-
name: Ubuntu 22.04
62-
runs-on: ubuntu-22.04
63-
steps:
64-
- uses: actions/checkout@v4
65-
66-
- name: Install GNU Radio
67-
run: |
68-
sudo apt update
69-
sudo apt install gnuradio-dev cmake libsndfile1-dev
70-
- name: Build
71-
run: |
72-
cmake -B build
73-
cmake --build build
74-
- name: Install
75-
run: |
76-
cd build
77-
sudo make install
78-
sudo ldconfig
79-
- name: Unit Tests
80-
run: |
81-
cd build
82-
make test
83-
- name: Open SDR with gr-soapy
84-
run: |
85-
iridium-extractor examples/hackrf-soapy.conf 2>&1 | tee stderr-out
86-
cat stderr-out | grep "RuntimeError: no hackrf device matches"
87-
- name: Open SDR with gr-osmosdr
88-
run: |
89-
sudo apt install gr-osmosdr
90-
iridium-extractor examples/hackrf-10msps.conf 2>&1 | tee stderr-out
91-
cat stderr-out | grep "RuntimeError: Failed to use '0' as HackRF device index: not enough devices"
9264
gr-ppa:
9365
name: Ubuntu 20.04 + GNURadio PPA
9466
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)