Skip to content

Update unit_test_auto.yaml #4

Update unit_test_auto.yaml

Update unit_test_auto.yaml #4

Workflow file for this run

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: Prepare Test Environment
run: |
sudo apt purge --auto-remove cmake
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | sudo tee -a /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt update
sudo apt install cmake
cmake --version
- name: Check working directory
run: |
pwd
ls -la
- 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