Skip to content

Commit 3422042

Browse files
committed
Add Github Action to build check
1 parent ec0b6f9 commit 3422042

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build check
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
macos_build_job:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [macos-12, macos-14]
13+
runs-on: ${{ matrix.os }}
14+
name: Build on ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup tools
18+
run: brew install soapysdr
19+
- name: Build
20+
run: |
21+
cmake -B build
22+
cmake --build build
23+
24+
linux_build_job:
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
os: [ubuntu-20.04, ubuntu-22.04]
29+
runs-on: ${{ matrix.os }}
30+
name: Build on ${{ matrix.os }}
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Setup tools
34+
run: |
35+
sudo apt-get update -q -y
36+
sudo apt-get install -y --no-install-recommends cmake ninja-build
37+
sudo apt-get install -q -y libsoapysdr-dev
38+
- name: Build
39+
run: |
40+
cmake -GNinja -B build
41+
cmake --build build

0 commit comments

Comments
 (0)