forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 17
34 lines (29 loc) · 1.28 KB
/
test_building_multiple_executables.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: test building multiple executables with CMake
on: [pull_request]
jobs:
multiple-executables-example:
runs-on: ubuntu-latest
container: ghcr.io/armmbed/mbed-os-env:master-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python packages
run: |
python3 -m pip install -r tools/requirements.txt
# Note: For this CI job we use MBED_CREATE_PYTHON_VENV=FALSE so that we can make sure
# this mode works.
- name: Build the multiple_executables example
run: |
cd tools/cmake/tests/multiple_executables/
mkdir cmake_build
cd cmake_build
cmake -DMBED_TARGET=ARM_MUSCA_S1 -DMBED_CREATE_PYTHON_VENV=FALSE ..
cmake --build .
- name: Verify the post-build command has run successfully on each image
run: |
APP1=tools/cmake/tests/multiple_executables/cmake_build/app1/app1.bin
APP2=tools/cmake/tests/multiple_executables/cmake_build/app2/app2.bin
BOOTLOADER=targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/bl2.bin
BOOTLOADER_SIZE=`du -b targets/TARGET_ARM_SSG/TARGET_MUSCA_S1/bl2.bin | cut -f1`
cmp -n $BOOTLOADER_SIZE $APP1 $BOOTLOADER
cmp -n $BOOTLOADER_SIZE $APP2 $BOOTLOADER