Skip to content

Commit c4f0dec

Browse files
committed
Added cmake build test to github actions
1 parent d13f326 commit c4f0dec

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Wolfboot CMake Build Workflow
2+
3+
on:
4+
push:
5+
branches: [ 'master', 'main', 'release/**' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
build-cmake:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
submodules: true
17+
18+
- name: Install cross compilers
19+
run: |
20+
sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
21+
sudo apt-get update
22+
sudo apt-get install -y gcc-arm-none-eabi gcc-powerpc-linux-gnu cmake
23+
24+
- name: Run CMake
25+
run: |
26+
rm -rf ./build
27+
cmake -B build -DWOLFBOOT_TARGET=stm32u5 -DBUILD_TEST_APPS=yes -DWOLFBOOT_PARTITION_BOOT_ADDRESS=0x08100000 -DWOLFBOOT_SECTOR_SIZE=0x2000 -DWOLFBOOT_PARTITION_SIZE=0x20000 -DWOLFBOOT_PARTITION_UPDATE_ADDRESS=0x817F000 -DWOLFBOOT_PARTITION_SWAP_ADDRESS=0x81FE000 -DNO_MPU=yes
28+
29+
- name: Build wolfBoot
30+
run: make -C build

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if(NOT DEFINED WOLFBOOT_SECTOR_SIZE)
5656
endif()
5757

5858
if(NOT DEFINED ARM_TARGETS)
59-
list(APPEND ARM_TARGETS stm32h7 stm32l0 stm32f4 stm32u5)
59+
list(APPEND ARM_TARGETS cypsoc6 imx kinetis lpc54606j512 mcxa mcxw nrf52 nrf52840 nrf5340 nrf5340_net rp2350 sama5d3 same51 stm32c0 stm32f1 stm32f4 stm32f7 stm32g0 stm32h5 stm32h7 stm32l0 stm32l5 stm32u5 stm32wb ti zynqmp)
6060
set(ARM_TARGETS
6161
"${ARM_TARGETS}"
6262
CACHE INTERNAL "")

0 commit comments

Comments
 (0)