Skip to content

Commit

Permalink
Update unit_test_auto.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
silabs-bingocth authored Sep 30, 2024
1 parent c6c2517 commit b8b11b3
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/unit_test_auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,25 @@ jobs:
steps:
- name: Checkout
uses: actions/[email protected]
- name: Prepare Test Environment
- name: Download a file
# You may pin to the exact commit or the version.
# uses: valitydev/action-download-file@7fb017bf38a45a6d420e5456e95f0b1ef966a20c
uses: valitydev/[email protected]
with:
# URL to file
url: https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
# Target path
target-path: docker/

- name: Prepare Environment
run: |
cd docker
ls -la
tar xjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
ls -la
cd gcc-arm-none-eabi-10.3-2021.10/bin
ls -la
cd ..
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
Expand All @@ -27,8 +44,9 @@ jobs:
- name: Unit Testing
run: |
export CMAKE_C_COMPILER=/home/runner/work/IEC60730_Libs/IEC60730_Libs/docker/gcc-arm-none-eabi-10.3-2021.10/bin
make prepare
cd build
cmake --toolchain ../cmake/toolchain.cmake .. -DENABLE_UNIT_TESTING=ON -DBOARD_NAME=brd4187c
cmake --build . --target unit_tests -j4
make unit_tests -j4

0 comments on commit b8b11b3

Please sign in to comment.