Update test.yml #5
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: CMake | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Set up dependencies | |
- name: Set up dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y build-essential cmake nlohmann-json3-dev python3 libzmq3-dev libmsgpack-dev | |
python3 -m pip install pyzmq msgpack pyyaml robotframework | |
# Build spi processor C++ wrapper to work with spi devices. | |
- name: Build spi processor C++ wrapper | |
run: | | |
cd spi-processing/cpp_wrapper/src/ | |
cmake -B build | |
cd build/ | |
make | |
# Build process communication interface for C++. | |
- name: Build process communication interface | |
run: | | |
cd runtime-environment/process-communication/cpp_comm_interface/src/ | |
cmake -B build | |
cd build/ | |
make | |
# Build the assembly contains fundamental components of the system. | |
- name: Build fundamental components | |
run: | | |
cd runtime-environment/ | |
python3 build.py | |
# Build alternative mock process of program to be tested. | |
- name: Build mock process | |
run: | | |
cd program_tested_mock/src/ | |
cmake -B build | |
cd build/ | |
make |