Skip to content

add CMakeLists.txt and rewrite unit tests with add_subdirectory #390

add CMakeLists.txt and rewrite unit tests with add_subdirectory

add CMakeLists.txt and rewrite unit tests with add_subdirectory #390

Workflow file for this run

name: build
on: push
jobs:
build:
strategy:
matrix:
target: [stm32f103, stm32g0b1, ubuntu]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install gtest
run: |
wget https://gist.githubusercontent.com/Ponomarevda/d970c24de8deab5d6ccfee8f5f719bcc/raw/install_gtest_ubuntu.sh && chmod +x install_gtest_ubuntu.sh && ./install_gtest_ubuntu.sh
sudo apt-get install -y make gcc-arm-none-eabi
- run: make -s ${{ matrix.target }}
test_params_generator:
strategy:
matrix:
target: [c_generator, cpp_generator]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install gtest
run: |
wget https://gist.githubusercontent.com/Ponomarevda/d970c24de8deab5d6ccfee8f5f719bcc/raw/install_gtest_ubuntu.sh && chmod +x install_gtest_ubuntu.sh && ./install_gtest_ubuntu.sh
sudo apt-get install -y make gcc-arm-none-eabi
- run: make -s ${{ matrix.target }}