-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
448c9d0
commit d5119cc
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build check | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
macos_macports_build_job: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-12, macos-14] | ||
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: port install SoapySDR rtl-sdr | ||
- name: Configure | ||
run: cmake -B build | ||
- name: Build | ||
run: cmake --build build | ||
|
||
macos_homebrew_build_job: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-12, macos-14] | ||
runs-on: ${{ matrix.os }} | ||
name: Build on ${{ matrix.os }} (homebrew) | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup tools | ||
run: brew install soapysdr librtlsdr | ||
- 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 librtlsdr-dev | ||
- name: Configure | ||
run: cmake -GNinja -B build | ||
- name: Build | ||
run: cmake --build build |