Skip to content

Add Github Actions docker-based build system#160

Open
mike-code wants to merge 1 commit intodeividAlfa:masterfrom
mike-code:feat/githubactions_build
Open

Add Github Actions docker-based build system#160
mike-code wants to merge 1 commit intodeividAlfa:masterfrom
mike-code:feat/githubactions_build

Conversation

@mike-code
Copy link

When implementing #159 I've had to be able to build it on my machine and I didn't really want to spin up Windows environment just for this.

So I asked AI to figure out how to build it without having to install an IDE. What it came up with was this gigantic script which generates some stubs that are apparently used in CubeMX build toolkit (more explained in BUILD.md). I can't say if this script is production ready, though perhaps you may want to place it somewhere for others who can't run a Windows build.

Myself I only own KSGER v3 and I confirm the build does work on my board.

This PR also includes a Github action that triggers on Github Release, builds binaries and adds them to the Release automatically. See example release from this build

- Dockerfile: Ubuntu 22.04 + ARM toolchain + cached HAL/CMSIS
- docker-compose.yml: mounts source ro, outputs binaries to ./build/
- scripts/docker-build.sh: generates CubeMX-equivalent init files at
  build time, replacing the CubeIDE/CubeMX dependency.
- BUILD.md: documents Docker, Windows, and native build workflows

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant