[gh-action] add new case to run unit test with toranj config (#8164)

This commit adds a new case under GitHub `toranj.yml` workflow to
build and run all unit test using the toranj OT configuration.
This commit is contained in:
Abtin Keshavarzian
2022-09-20 18:21:13 -07:00
committed by GitHub
parent 92f18c5c53
commit af1fd05f0b
+21
View File
@@ -119,6 +119,27 @@ jobs:
name: cov-toranj-cli-${{ matrix.TORANJ_RADIO }}
path: tmp/coverage.info
toranj-unittest:
name: toranj-unittest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Bootstrap
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get --no-install-recommends install -y clang-10 clang++-10 ninja-build python3-setuptools python3-wheel llvm lcov
sudo apt-get --no-install-recommends install -y g++-multilib libreadline-dev:i386 libncurses-dev:i386
python3 -m pip install -r tests/scripts/thread-cert/requirements.txt
- name: Build & Run
run: |
./tests/toranj/build.sh cmake
ninja test
upload-coverage:
needs:
- toranj-ncp