cancel
Showing results for 
Search instead for 
Did you mean: 

GitHub actions integration

YKuo.1
Associate II

Hi,

I'm looking into utilizing GitHub actions for CI/CD. I couldn't find any examples of how to use GitHub actions to build a STM32CubeIDE project automatically. Any hints/directions?

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Markus GIRDLAND
ST Employee

In STM32CubeIDE go to the menu "Help->Eclipse Marketplace..." and then look for and install "EGit - Git Integration for Eclipse" 

After you have installed, when you right click on the project to see the project properties, you can find the menu entry "Team" which contains the Git stuff.

You can also start CubeIDE with -unhideTeamSynchronizing if you prefer.

For more info about how to use GitHub I would suggest this website.

View solution in original post

7 REPLIES 7
Markus GIRDLAND
ST Employee

In STM32CubeIDE go to the menu "Help->Eclipse Marketplace..." and then look for and install "EGit - Git Integration for Eclipse" 

After you have installed, when you right click on the project to see the project properties, you can find the menu entry "Team" which contains the Git stuff.

You can also start CubeIDE with -unhideTeamSynchronizing if you prefer.

For more info about how to use GitHub I would suggest this website.

Javier1
Principal

Very interesting question, i am researching how to use github actions to Static test my code and compile in their cloud every commit.

we dont need to firmware by ourselves, lets talk
YKuo.1
Associate II

Hi Javier

I found an alternative method.

STM32CubeMX could generate a makefile, which is easier to work with Github actions. However, the auto-generated makefile doesn't work straight out of the box. Some minor tweaks are required to compile the project. Hope this helps.

Ye-Sheng​

Hi YKuo.1 i am very interesting to know how you are done cicd. presently we are doing build using make file locally not with cubemx. my project repo don't have ioc file. using the same how we can build in github action. i am new to github can you please help me thanks

Yup i ended up doing it with cubeMX generated makefile.

for me it works out of the box i just need to manually include every .c .h paths and names in the makefile-file

we dont need to firmware by ourselves, lets talk
stp
Associate

Would it be possible to share the solution ?