-
Notifications
You must be signed in to change notification settings - Fork 8
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
workflow: Add make release workflow #147
workflow: Add make release workflow #147
Conversation
b733954
to
441b9b3
Compare
441b9b3
to
3d08ca7
Compare
Can you add a https://github.com/actions/upload-artifact step so the files get attached to each build? |
Then the release task doesn't have to build them again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I understand now. This builds artifacts when a release is manually created.
It seems that the version string is not compiled into the firmware. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build should set release firmware version.
Yes I was also thinking about that. The only reason why I did it this way was that that the on_target job (which does the upload of the built binary) runs every night on main. Then the artifact will have the name main in it instead of a Sha and that would lead to non-unique artifacts for runs on main branch. I believe that's acceptable. Will fix |
You can include the current checksum of main. |
Can you also publish the .config file as an artifact? |
Shouldn't the firmware be built with the app version and report it to cloud? This is perhaps a new task since it isn't implemented yet. So it's fine to just add as a task and do it later. Did a quick check with @simensrostad now, and the schema includes The modem_info library seems to read out this info from a
However, the |
Yes, as reported in #104, the |
c449901
to
6b63aa9
Compare
This is now fixed. |
When a release is created this new workflow calls the other build and test workflows and uploads the tested artifacts into github release. The existing workflows were modified to make them callable from other workflows. Build workflow now uploads the artifacts so that they can be added to the release. The build workflow uploads the hex, bin and the .config file. The names of the files will have the sha if built from main and the tag name if built from a tag. Signed-off-by: Balaji Srinivasan <[email protected]>
6b63aa9
to
275343d
Compare
Quality Gate passedIssues Measures |
The released firmware does not have the release version configured, but this will be handled in a separate PR. |
When a release is created this new workflow calls the other build
and test workflows and uploads the tested artifacts into github
release.
The existing workflows were modified to make them callable from other
workflows.
Build workflow now uploads the artifacts so that they can be added to
the release. The build workflow uploads the hex, bin and the .config
file. The names of the files will have the sha if built from main and
the tag name if built from a tag.
The release will look like this with the assets (tested on private fork)
The workflow run will look similar to this.
Fixes: #139