Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spinal][Github Action] Automatic Spinal firmware build flow by Github Action. #631

Merged
merged 30 commits into from
Dec 28, 2024

Conversation

sugihara-16
Copy link
Collaborator

What is this

This PR provides a Github Action workflow that automatically builds Spinal firmware by Github Action.

Details

This workflow runs in a docker image where ros noetic and STM32CubeIDE are installed.
Dockerfile is now located here and you can download the built image with the following command:
$ docker pull ghcr.io/sugihara-16/docker_test/stm32cubeide_1.8.0_build_env:2024-11-03
Additionally, you can find example of generated files here.

@tongtybj
Copy link
Collaborator

tongtybj commented Nov 4, 2024

Great!

I realize that another very importnat purpose of this action is to check the compile error while building the project.
Is it possible to transfer the build error (https://github.com/jsk-ros-pkg/jsk_aerial_robot/pull/631/files#diff-7de46c59a974698097aa71e64acc133be04328b5fe7334f0330e113c0563f122R52-R60) to the action?

@sugihara-16
Copy link
Collaborator Author

Yes, it's already possible.
If STM32CubeIDE succeeds in the build process, it outputs exit code 0, while it outputs exit code 1 in the case of build failure. Github Action can detect these exit codes and determine whether the workflow goes well.
Please check this by pushing some invalid codes.

@tongtybj
Copy link
Collaborator

tongtybj commented Nov 4, 2024

One more question:

how did you get en.st-stm32cubeide_${STM32CUBE_VERSION}_amd64.deb_bundle.sh.zip in Dockerfile: https://github.com/sugihara-16/Spinal_build_docker_image/blob/master/Dockerfile#L60

@sugihara-16
Copy link
Collaborator Author

I made the directory with following structure:

Project_directory
|
|- Dockerfile
|
|_ stm32cubeide.zip

When you build Docker image, you can load stm32cubeide.zip by specifying “build context” like
docker build "image_name" -f Dockerfile .

Moju Zhao and others added 2 commits December 27, 2024 21:17
@tongtybj tongtybj merged commit 34554da into jsk-ros-pkg:master Dec 28, 2024
7 checks passed
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.

2 participants