Skip to content

Commit

Permalink
CI Binary Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstalgia committed Nov 25, 2024
1 parent 0e2c88c commit 37879cd
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v4
- name: Submodule Init
uses: snickerbockers/submodules-init@v4
- name: Setup Rust
- name: Setup esp-rs/xtensa Rust
uses: esp-rs/[email protected]
with:
default: true
Expand All @@ -44,3 +44,24 @@ jobs:
# run: cargo run --manifest-path ./cargo-patch-crate-fork/Cargo.toml --target x86_64-unknown-linux-gnu
- name: Run command
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }}
- 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: 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: Archive Release artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: |
target/xtensa-esp32-espidf/release/bootloader.bin
target/xtensa-esp32-espidf/release/mff-hr-v1
target/xtensa-esp32-espidf/release/app.bin
target/xtensa-esp32-espidf/release/partitions-0x8000.bin

0 comments on commit 37879cd

Please sign in to comment.