Skip to content

Commit

Permalink
Merge pull request #163 from thomasfire/main
Browse files Browse the repository at this point in the history
Upload built binaries to artifacts
  • Loading branch information
jordens authored Oct 28, 2024
2 parents d1495cc + b8c9879 commit 05f1013
Showing 1 changed file with 14 additions and 7 deletions.
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

0 comments on commit 05f1013

Please sign in to comment.