Skip to main content
Associate II
September 4, 2026
Question

How to implement a pipeline on github using autogenerated Cmake files

  • September 4, 2026
  • 1 reply
  • 20 views

Hi all,

I’m configuring a GitHub Actions CI pipeline for an STM32 project with auto-generated CMake files (STM32CubeIDE/CubeMX).
I already created a custom Debian container including the dedicated ARM toolchain (arm-none-eabi) version 14.3.rel1 for reproducible builds.
What is the best practice: how do I have to configure the CmakeList? Is there a template?
How can I keep custom flags/include paths/post-build steps without editing generated files directly?
Do you have a minimal working example for STM32 + CMake on GitHub Actions (including .elf/.bin/.hex artifacts)?
Thanks in advance for any recommendations.

1 reply

Pavel A.
September 4, 2026

CI actions on github run automatically when certain events occur: usually a push (code change), when a release is created, etc. See the Github docum. Actions on code change usually cause rebuild, so your Cmake will be automatically called, nothing special is needed in the cmakeList.

Also it’s possible to call a CI action “manually” - if you want to do this from your Cmake script, read on GitHub CLI (the gh workflow run command) and on external triggers.