-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (42 loc) · 1.5 KB
/
build.yml
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
name: CMake
on:
[ push, pull_request ]
env:
BUILD_TYPE: Release
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, ubuntu-20.04, macos-latest, macos-11 ]
runs-on: ${{ matrix.os }}
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install packaged dependencies
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then sudo apt-get update; fi
if [[ "$RUNNER_OS" == "Linux" ]]; then sudo apt-get install libliquid-dev libglib2.0-dev libfftw3-dev libsoapysdr-dev libconfig++-dev; fi
if [[ "$RUNNER_OS" == "macOS" ]]; then brew update; fi
if [[ "$RUNNER_OS" == "macOS" ]]; then brew install glib liquid-dsp fftw soapysdr libconfig; fi
- name: Install libacars
run: |
cd "$RUNNER_TEMP"
git clone https://github.com/szpajder/libacars.git
cd libacars
mkdir build
cd build
cmake ..
make -j
sudo make install
if [[ "$RUNNER_OS" == "Linux" ]]; then sudo ldconfig; fi
if [[ "$RUNNER_OS" == "macOS" ]]; then sudo update_dyld_shared_cache; fi
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Install
run: sudo cmake --install ${{github.workspace}}/build
- name: Test run
run: /usr/local/bin/dumphfdl --help