-
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
c6c2517
commit b8b11b3
Showing
1 changed file
with
20 additions
and
2 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||