Skip to content

Commit

Permalink
Add Github Action to build check
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Apr 15, 2024
1 parent ec0b6f9 commit 3422042
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build check
on:
push:
pull_request:
workflow_dispatch:

jobs:
macos_build_job:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup tools
run: brew install soapysdr
- name: Build
run: |
cmake -B build
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
- name: Build
run: |
cmake -GNinja -B build
cmake --build build

0 comments on commit 3422042

Please sign in to comment.