Skip to content

Commit 2a5d381

Browse files
committed
Add GitHub build check action
1 parent cf78b9c commit 2a5d381

3 files changed

Lines changed: 59 additions & 64 deletions

File tree

.github/workflows/build.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build check
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
macos_macports_build_job:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [macos-14, macos-15]
13+
runs-on: ${{ matrix.os }}
14+
name: Build on ${{ matrix.os }} (macports)
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: melusina-org/setup-macports@v1
18+
- name: Install ports
19+
run: port install SoapySDR py310-setuptools uhd
20+
# Note: MacPorts uhd depends on non-default boost171
21+
- name: Configure
22+
run: BOOST_ROOT=/opt/local/libexec/boost/1.71 cmake -B build
23+
- name: Build
24+
run: cmake --build build
25+
26+
macos_homebrew_build_job:
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
os: [macos-14, macos-15]
31+
runs-on: ${{ matrix.os }}
32+
name: Build on ${{ matrix.os }} (homebrew)
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Setup tools
36+
run: brew install soapysdr uhd
37+
- name: Configure
38+
run: cmake -B build
39+
- name: Build
40+
run: cmake --build build
41+
42+
linux_build_job:
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
os: [ubuntu-22.04, ubuntu-24.04]
47+
runs-on: ${{ matrix.os }}
48+
name: Build on ${{ matrix.os }}
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Setup tools
52+
run: |
53+
sudo apt-get update -q -y
54+
sudo apt-get install -y --no-install-recommends cmake ninja-build
55+
sudo apt-get install -q -y libsoapysdr-dev libuhd-dev
56+
- name: Configure
57+
run: cmake -GNinja -B build
58+
- name: Build
59+
run: cmake --build build

.travis.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Soapy SDR plugins for UHD devices
22

3-
## Build Status
4-
5-
- Travis: [![Travis Build Status](https://travis-ci.org/pothosware/SoapyUHD.svg?branch=master)](https://travis-ci.org/pothosware/SoapyUHD)
6-
73
## Dependencies
84

95
* UHD - https://github.com/EttusResearch/uhd/wiki

0 commit comments

Comments
 (0)