Update unit_test_auto.yaml #2
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: Unit Tests Auto Trigger | |
on: | |
push: | |
jobs: | |
job1: | |
name: Unit test | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Check working directory | |
run: | | |
pwd | |
mkdir test_tool | |
ls -la | |
- name: Download a file | |
uses: valitydev/[email protected] | |
with: | |
# URL to file | |
url: https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4.tar.gz | |
# Target path | |
target-path: test_tool/ | |
- name: Prepare Test Environment | |
run: | | |
cd test_tool | |
tar -xvf cmake-3.30.4.tar.gz | |
cd cmake-3.30.4 | |
./bootstrap && make && sudo make install | |
- name: Unit Testing | |
run: | | |
make prepare | |
cd build | |
cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_UNIT_TESTING=ON -DBOARD_NAME=brd4187c | |
cmake --build . --target unit_tests -j4 | |