-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rework GitHub workflows #178
Conversation
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
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.
- Remember to delete the old files :)
.github/workflows/release-ci.yml
Outdated
echo "archive_path=$ARCHIVE_PATH" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Upload release package | ||
uses: softprops/action-gh-release@v2 |
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.
uses: softprops/action-gh-release@v2 | |
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9 |
.github/workflows/release-ci.yml
Outdated
echo "archive_path=$ARCHIVE_PATH" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Upload release package | ||
uses: softprops/action-gh-release@v2 |
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.
uses: softprops/action-gh-release@v2 | |
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9 |
.github/workflows/release-ci.yml
Outdated
run: ./mvnw --batch-mode package | ||
|
||
- name: Upload release package | ||
uses: softprops/action-gh-release@v2 |
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.
uses: softprops/action-gh-release@v2 | |
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # v2.0.9 |
.github/workflows/release-ci.yml
Outdated
echo "archive_path=$ARCHIVE_PATH" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Upload release package | ||
uses: softprops/action-gh-release@v1 |
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.
uses: softprops/action-gh-release@v1 | |
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1 |
name: Dev CI | ||
|
||
on: | ||
workflow_dispatch: |
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.
I don't see the workflow_dispatch
trigger on the action page yet, is it normal?
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.
my understanding is that we have to wait that the PR is merged...
meanwhile it can be triggered by GitHub CLI using:
gh workflow run --ref=gh-workflows
See https://stackoverflow.com/a/67840292 and its most upvoted comment explaining the trick which I applied for Dev CI.
I re-ran it here: https://github.com/powsybl/powsybl-metrix/actions/runs/11706681139
@@ -0,0 +1,322 @@ | |||
name: Full CI | |||
|
|||
on: |
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.
Maybe add:
on: | |
on: | |
workflow_dispatch: |
?
Signed-off-by: Damien Jeandemange <[email protected]>
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
* try rework github workflows Signed-off-by: Damien Jeandemange <[email protected]> * try rework github workflows Signed-off-by: Damien Jeandemange <[email protected]> * clang tidy Signed-off-by: Damien Jeandemange <[email protected]> * clang tidy Signed-off-by: Damien Jeandemange <[email protected]> * clang tidy Signed-off-by: Damien Jeandemange <[email protected]> * clang tidy Signed-off-by: Damien Jeandemange <[email protected]> * clang tidy Signed-off-by: Damien Jeandemange <[email protected]> * clang tidy Signed-off-by: Damien Jeandemange <[email protected]> * artifacts Signed-off-by: Damien Jeandemange <[email protected]> * artifacts Signed-off-by: Damien Jeandemange <[email protected]> * artifacts Signed-off-by: Damien Jeandemange <[email protected]> * artifacts Signed-off-by: Damien Jeandemange <[email protected]> * wip Signed-off-by: Damien Jeandemange <[email protected]> * fix Signed-off-by: Damien Jeandemange <[email protected]> * use softprops/action-gh-release Signed-off-by: Damien Jeandemange <[email protected]> * fix Signed-off-by: Damien Jeandemange <[email protected]> --------- Signed-off-by: Damien Jeandemange <[email protected]> (cherry picked from commit dcb11db)
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
Refactor
What is the current behavior?
many workflows a bit complicated
What is the new behavior (if this is a feature change)?
Three workflows: Dev, Full, and Release.
Dev:
Note that earlier workflows were not running C++ builts when no C++ files modified. This behavior was NOT retained. Reason: it is confusing to see in GitHub PR the checks being required but not launched …
Full: Same as Dev CI, except:
Release:
Does this PR introduce a breaking change or deprecate an API?
Other information:
Clang Tidy report job had issues which have been fixed.