Skip to content

Commit

Permalink
Test merged binary
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstalgia committed Dec 14, 2024
1 parent 77d50dd commit 82411ae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,26 @@ jobs:
# - name: Install Linux Dependencies
# run: sudo apt-get update && sudo apt-get install -y libudev-dev
# continue-on-error: true
# - name: Setup Linux Rust toolchain and cache
# uses: actions-rust-lang/[email protected]
# continue-on-error: true
- name: Setup Linux Rust toolchain and cache
uses: actions-rust-lang/[email protected]
continue-on-error: true
# - name: Convert ELF to .bin
# run: |
# cargo install espflash --version 3.2.0 --target x86_64-unknown-linux-gnu
# ~/.cargo/bin/espflash save-image --chip esp32 target/xtensa-esp32-espidf/release/mff-hr-v1 target/xtensa-esp32-espidf/release/app.bin
# ~/.cargo/bin/espflash partition-table partitions.csv --to-binary -o target/xtensa-esp32-espidf/release/partitions-0x8000.bin
# continue-on-error: true
- name: Install Cargo Binstall
uses: cargo-bins/cargo-binstall@main
- name: Install espflash
run: cargo binstall espflash --version 3.2.0 --target x86_64-unknown-linux-gnu --no-confirm --force
- name: Build Release Binary
run: espflash save-image --chip esp32 --flash-size 4mb --partition-table partitions.csv --merge target/xtensa-esp32-espidf/release/mff-hr-v1 target/xtensa-esp32-espidf/release/out.bin
- name: Archive Release artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: |
partitions.csv
target/xtensa-esp32-espidf/release/mff-hr-v1
target/xtensa-esp32-espidf/release/out.bin

0 comments on commit 82411ae

Please sign in to comment.