Skip to content

Update Github Action #27

Update Github Action

Update Github Action #27

Workflow file for this run

name: Build check
on:
push:
pull_request:
workflow_dispatch:
jobs:
macos_macports_build_job:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14, macos-15]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }} (macports)
steps:
- uses: actions/checkout@v4
- uses: melusina-org/setup-macports@v1
- name: Install ports
run: |
sudo port install SoapySDR libusb libiio libad9361-iio
- name: Configure
run: cmake -B build
- name: Build
run: cmake --build build
macos_tfcollins_build_job:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14, macos-15]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }} (tfcollins)
steps:
- uses: actions/checkout@v4
- name: Setup tools
run: |
brew tap tfcollins/homebrew-formulae
brew update
echo removing links overwritten by brew install soapysdr
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config
rm -f /usr/local/share/man/man1/python3.1
rm -f /usr/local/lib/pkgconfig/python3-embed.pc
rm -f /usr/local/lib/pkgconfig/python3.pc
rm -f /usr/local/Frameworks/Python.framework/Headers
rm -f /usr/local/Frameworks/Python.framework/Python
rm -f /usr/local/Frameworks/Python.framework/Resources
rm -f /usr/local/Frameworks/Python.framework/Versions/Current
brew install soapysdr libusb libiio libad9361-iio
- name: Configure
run: cmake -B build
- name: Build
run: cmake --build build
macos_pothos_build_job:
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14, macos-15]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }} (pothos)
steps:
- uses: actions/checkout@v4
- name: Setup tools
# Note: "distutils" package is removed in python version 3.12
# pothosware libiio homebrew formula will fail without "setuptools"
run: |
brew tap pothosware/homebrew-pothos
brew update
pip3 install --break-system-packages setuptools
echo removing links overwritten by brew install soapysdr
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config
rm -f /usr/local/share/man/man1/python3.1
rm -f /usr/local/lib/pkgconfig/python3-embed.pc
rm -f /usr/local/lib/pkgconfig/python3.pc
rm -f /usr/local/Frameworks/Python.framework/Headers
rm -f /usr/local/Frameworks/Python.framework/Python
rm -f /usr/local/Frameworks/Python.framework/Resources
rm -f /usr/local/Frameworks/Python.framework/Versions/Current
brew install soapysdr libusb libiio libad9361
- name: Configure
run: cmake -B build
- name: Build
run: cmake --build build
linux_build_job:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup tools
run: |
sudo apt-get update -q -y
sudo apt-get install -y --no-install-recommends cmake ninja-build
sudo apt-get install -q -y libsoapysdr-dev libusb-1.0-0-dev libiio-dev libad9361-dev
- name: Configure
run: cmake -GNinja -B build
- name: Build
run: cmake --build build