File: 0004-Update-build-check-Github-Action.patch

package info (click to toggle)
soapyairspy 0.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 200 kB
  • sloc: cpp: 910; makefile: 8
file content (71 lines) | stat: -rw-r--r-- 2,049 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
From a6f6d839404940c8d471d126c68bb660ef0bb487 Mon Sep 17 00:00:00 2001
From: "Christian W. Zuckschwerdt" <christian@zuckschwerdt.org>
Date: Wed, 17 Apr 2024 23:51:30 +0200
Subject: [PATCH 4/5] Update build check Github Action

---
 .github/workflows/build.yml | 33 +++++++++++++++++++++++++--------
 1 file changed, 25 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 362a2c6..7ddce02 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,21 +5,38 @@ on:
   workflow_dispatch:
 
 jobs:
-  macos_build_job:
+  macos_macports_build_job:
     strategy:
       fail-fast: false
       matrix:
         os: [macos-12, macos-14]
     runs-on: ${{ matrix.os }}
-    name: Build 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 airspy
+      - 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 airspy
+      - name: Configure
+        run: cmake -B build
       - name: Build
-        run: |
-          cmake -B build
-          cmake --build build
+        run: cmake --build build
 
   linux_build_job:
     strategy:
@@ -35,7 +52,7 @@ jobs:
           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: Configure
+        run: cmake -GNinja -B build
       - name: Build
-        run: |
-          cmake -GNinja -B build
-          cmake --build build
+        run: cmake --build build
-- 
2.47.3