-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1 KB
/
ci.yaml
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
name: "C++ CI"
on:
push:
branches:
- '*'
paths-ignore:
- 'README**'
- 'doc/**'
- 'octave/**'
pull_request:
branches:
- '*'
paths-ignore:
- 'README**'
- 'doc/**'
- 'octave/**'
jobs:
build:
name: Build and install
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [ ubuntu-22.04, ubuntu-24.04 ]
steps:
- name: Install build requirements
run: sudo apt-get update ; sudo apt-get install -y g++ cmake git libusb-1.0-0-dev librtlsdr-dev libasound2-dev libfftw3-dev libfftw3-single3 libpopt-dev libairspy-dev libsigc++-2.0-dev
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Configure
run: rm -rf build ; cmake -B build -DCMAKE_INSTALL_PREFIX=/usr
- name: Build
run: cd build && make
- name: Install
run: cd build && sudo make install
- name: Uninstall
run: cd build && sudo make uninstall