From 34220426bd49894e121733d7c1ea82ec8a0d0cde Mon Sep 17 00:00:00 2001 From: "Christian W. Zuckschwerdt" Date: Mon, 15 Apr 2024 10:50:44 +0200 Subject: [PATCH] Add Github Action to build check --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..debc8dc --- /dev/null +++ b/.github/workflows/build.yml @@ -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