add CMakeLists.txt and rewrite unit tests with add_subdirectory #389
This file contains hidden or 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 | |
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 }} |