Skip to content

Dated subdirectories #459

Dated subdirectories

Dated subdirectories #459

Workflow file for this run

name: Test build
on:
push:
branches: [main, unstable]
pull_request:
schedule:
- cron: '39 13 * * *' # run daily
jobs:
build:
strategy:
matrix:
os: [ ubuntu-22.04, macos-latest, rpi3b, macos-11, macos-12, ubuntu-latest, ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
timeout-minutes: 35 # runtime across all OSs, runs can get queued and mac runs take 15-20 min
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Install packaged dependencies
run: .github/install_dependencies
- name: Configure
run: |
cmake -B ${{github.workspace}}/build_Debug -DCMAKE_BUILD_TYPE=Debug -DBUILD_UNITTESTS=TRUE
cmake -B ${{github.workspace}}/build_Debug_NFM -DCMAKE_BUILD_TYPE=Debug -DNFM=TRUE -DBUILD_UNITTESTS=TRUE
cmake -B ${{github.workspace}}/build_Release -DCMAKE_BUILD_TYPE=Release -DBUILD_UNITTESTS=TRUE
cmake -B ${{github.workspace}}/build_Release_NFM -DCMAKE_BUILD_TYPE=Release -DNFM=TRUE -DBUILD_UNITTESTS=TRUE
- name: Build
run: |
VERBOSE=1 cmake --build ${{github.workspace}}/build_Debug -j4
VERBOSE=1 cmake --build ${{github.workspace}}/build_Debug_NFM -j4
VERBOSE=1 cmake --build ${{github.workspace}}/build_Release -j4
VERBOSE=1 cmake --build ${{github.workspace}}/build_Release_NFM -j4
- name: Unit Tests
run: |
${{github.workspace}}/build_Debug/src/unittests
${{github.workspace}}/build_Debug_NFM/src/unittests
${{github.workspace}}/build_Release/src/unittests
${{github.workspace}}/build_Release_NFM/src/unittests
- name: Install
run: sudo cmake --install ${{github.workspace}}/build_Release_NFM
- name: Test run
run: /usr/local/bin/rtl_airband -v