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

Upload built binaries to artifacts #163

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,23 @@ jobs:
features: ''
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
target: thumbv7em-none-eabihf
override: true
- uses: actions-rs/cargo@v1
targets: thumbv7em-none-eabihf
components: llvm-tools-preview
- run: cargo build --release --features "${{ matrix.features }}"
- name: Extract Stable Binary Using cargo-binutils
if: matrix.toolchain == 'stable' && github.ref == 'refs/heads/main'
run: |
cargo install cargo-binutils
cargo objcopy --release --bin thermostat-eem -- -O binary thermostat-eem.bin
- name: Upload Artifacts
if: matrix.toolchain == 'stable' && github.ref == 'refs/heads/main'
uses: actions/[email protected]
with:
command: build
args: --release --features "${{ matrix.features }}"
path: thermostat-eem.bin

doc:
runs-on: ubuntu-latest
Expand Down