Merge pull request #81 from nrwahl2/nrwahl2-build #174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build/Test | |
on: | |
push: | |
paths-ignore: | |
- 'archive/**' | |
- '**/README.md' | |
- '**/LICENSE' | |
- '**/.gitignore' | |
jobs: | |
build-test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
build_type: [Debug, Release, MinSizeRel, TestDebug, TestRel] | |
steps: | |
- name: Checkout DxWiFi Repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Update Packages | |
run: sudo apt -y update | |
- name: Get Dependencies | |
run: > | |
sudo apt -y install build-essential cmake libgpiod-dev libpcap-dev | |
pybind11-dev python3 python3-dev valgrind | |
- name: Configure CMake | |
shell: bash | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
- name: Build | |
shell: bash | |
run: cmake --build build --parallel 6 | |
- name: Run System Tests - TestDebug | |
if: ${{ matrix.build_type == 'TestDebug' }} | |
env: | |
DXWIFI_INSTALL_DIR: bin/TestDebug | |
DXWIFI_MEMORY_CHECK: true | |
shell: bash | |
run: python -m unittest | |
- name: Run System Tests - TestRel | |
if: ${{ matrix.build_type == 'TestRel' }} | |
env: | |
DXWIFI_INSTALL_DIR: bin/TestRel | |
DXWIFI_MEMORY_CHECK: true | |
shell: bash | |
run: python -m unittest |