1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
From 821e5c3973fe06be7281de85e094008850349c87 Mon Sep 17 00:00:00 2001
From: "Christian W. Zuckschwerdt" <christian@zuckschwerdt.org>
Date: Fri, 12 Apr 2024 16:33:31 +0200
Subject: [PATCH 3/5] 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..362a2c6
--- /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 airspy
+ - 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 libairspy-dev
+ - name: Build
+ run: |
+ cmake -GNinja -B build
+ cmake --build build
--
2.47.3
|