-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff9204b
commit b23772f
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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-linux-x86_64.sh | ||
# Target path | ||
target-path: test_tool/ | ||
- 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-linux-x86_64.tar.gz | ||
# Target path | ||
target-path: test_tool/ | ||
- name: Prepare Test Environment | ||
run: | | ||
cd test_tool | ||
chmod +x cmake-3.30.4-linux-x86_64.sh | ||
./cmake-3.30.4-linux-x86_64.sh | ||
- 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 | ||