-
Notifications
You must be signed in to change notification settings - Fork 106
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
#13065: Use the same action for building and running #13066
#13065: Use the same action for building and running #13066
Conversation
@@ -80,12 +80,9 @@ jobs: | |||
timeout-minutes: ${{ inputs.timeout }} | |||
uses: ./.github/actions/docker-run | |||
with: | |||
docker_username: ${{ github.actor }} | |||
install_wheel: true |
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.
Missed this in the code rebase
@@ -80,7 +80,7 @@ runs: | |||
${{ inputs.device }} | |||
-w ${{ github.workspace }} | |||
run: | | |||
if [ ${{ inputs.install_wheel }} ]; then | |||
if [ ${{ inputs.install_wheel }} = "true" ]; then |
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.
Need to use as a string comparison - the value is not actually boolean. There is an existing Github issue:
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.
does it matter if its "" or ''?
I didn't realize this was a thing so maybe we should double check if we have other comparisons here too
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 think both "" and '' evaluate to a string in bash so it does not matter.
Do you think '' is more consistent?
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 think as long as we stick to one convention it is fine.
b0a21f0
to
7d37bcc
Compare
7d37bcc
to
b4c93a0
Compare
Ticket
#13065
Problem description
We were working at the same time and solving similar issues from different angles resulting in very similar solutions.
Docker Run Action
tt-metal/.github/actions/docker-run/action.yml
Line 56 in cef5730
Docker Run Action in Build Step
tt-metal/.github/workflows/build-artifact.yaml
Line 100 in cef5730
What's changed
The actions are actually near identical and so the generic Docker Run Action just needs to be incorporated into the build step.
Couple of other fixes:
Checklist