-
Notifications
You must be signed in to change notification settings - Fork 4
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
Upload built binaries to artifacts #163
Conversation
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.
Thanks. This will be useful.
But please do read and check your contribution first.
Also c.f. booster.
.github/workflows/ci.yml
Outdated
command: objcopy | ||
args: --release --bin thermostat-eem -- -O binary ${{ matrix.toolchain }}-thermostat-eem.bin | ||
- name: Upload a Build Artifact | ||
uses: actions/[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.
That's outdated.
.github/workflows/ci.yml
Outdated
with: | ||
command: objcopy | ||
args: --release --bin thermostat-eem -- -O binary ${{ matrix.toolchain }}-thermostat-eem.bin | ||
- name: Upload a Build Artifact |
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.
"a"?
Please read and make useful when copy-pasting.
.github/workflows/ci.yml
Outdated
@@ -72,10 +72,26 @@ jobs: | |||
toolchain: ${{ matrix.toolchain }} | |||
target: thumbv7em-none-eabihf | |||
override: true | |||
components: llvm-tools-preview | |||
- name: Install binary utils | |||
uses: actions-rs/cargo@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.
Deprecated and archived.
.github/workflows/ci.yml
Outdated
uses: actions-rs/cargo@v1 | ||
with: | ||
command: objcopy | ||
args: --release --bin thermostat-eem -- -O binary ${{ matrix.toolchain }}-thermostat-eem.bin |
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.
Why the toolchain in the name?
You'd only want the upload for a single toolchain.
But instead potentially and likely for multiple features.
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.
Well, I didn't know which binary is regarded to be official. For now I left only stable binary and moved cargo binutils under condition, so it would consume a bit less time quote.
c0efc92
to
25853f3
Compare
Signed-off-by: Egor Savkin <[email protected]>
Signed-off-by: Egor Savkin <[email protected]>
Also uses objcopy before uploading, so it can be more useful for end-users.