Add CMake option to disable building tests #68
Workflow file for this run
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: Linux hardware test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@master | |
- name: Install necessary tools | |
run: | | |
sudo apt -y update | |
sudo apt -y install cmake libboost-all-dev | |
sudo apt -y install python3-pip python3-setuptools | |
- name: Build it | |
run: | | |
git submodule update --init --recursive | |
mkdir build | |
cmake -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build --parallel --config Debug | |
- name: Run tests | |
run: | | |
cd build | |
./test-message | |
ls -ls /dev/ttyUSB* | |
for device in /dev/ttyUSB*; do $PWD/test-device --conn serial:$device:115200; done |