Skip to content

Commit

Permalink
CI: fix zephyr build issue related to the VERSION file
Browse files Browse the repository at this point in the history
The Zephyr cmake fails in version.cmake because some fields
are not present in the libmetal VERSION file
Add dummy fields for the CI to fix compatibility issue

Signed-off-by: Arnaud Pouliquen <[email protected]>
  • Loading branch information
arnopo committed Jun 5, 2023
1 parent 2345b74 commit cd104fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/build_ci/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ build_zephyr(){
cd ../.. &&
# The prj.conf is mandatory for cmake execution, create a void file.
touch prj.conf &&
# Add dummy fields in the VERSION file to fix compatibility with Zephyr
# version.cmake file
echo "PATCHLEVEL = 0" >>VERSION &&
echo "VERSION_TWEAK = 0" >>VERSION &&
echo "###### Build for qemu_cortex_m3 ######" &&
cmake . -DWITH_ZEPHYR=on -DBOARD=qemu_cortex_m3 -DWITH_TESTS=on -Bbuild-zephyr-m3 &&
cd build-zephyr-m3 &&
Expand Down

0 comments on commit cd104fa

Please sign in to comment.