Skip to content

Commit 1dda219

Browse files
committed
ci: Add github action to build greentea tests with cmake
Build for two targets, one with baremetal profile and one full profile.
1 parent 00dbf4c commit 1dda219

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/greentea_cmake.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test building greentea tests with cmake
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build-greentea-cmake:
7+
runs-on: ubuntu-latest
8+
container: ghcr.io/armmbed/mbed-os-env:master-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Install the latest mbed-tools
14+
run: |
15+
pip3 install --upgrade mbed-tools
16+
mbedtools --version
17+
18+
- name: Build NUCLEO_G031K8 with baremetal profile
19+
run: |
20+
rm -rf __build
21+
mbedtools configure -t GCC_ARM -m NUCLEO_G031K8 --mbed-os-path . --output-dir __build --app-config TESTS/configs/baremetal.json
22+
cmake -S . -B __build -GNinja -DCMAKE_CTEST_ARGUMENTS="--output-on-failure;-V" -DBUILD_GREENTEA_TESTS=ON -DMBED_GREENTEA_TEST_BAREMETAL=ON
23+
cmake --build __build
24+
25+
- name: Build ARM_MUSCA_S1 with full profile
26+
run: |
27+
rm -rf __build
28+
mbedtools configure -t GCC_ARM -m ARM_MUSCA_S1 --mbed-os-path . --output-dir __build
29+
cmake -S . -B __build -GNinja -DCMAKE_CTEST_ARGUMENTS="--output-on-failure;-V" -DBUILD_GREENTEA_TESTS=ON
30+
cmake --build __build

0 commit comments

Comments
 (0)