diff --git a/.github/workflows/rust_ci.yml b/.github/workflows/rust_ci.yml index a03511a..1bd0743 100644 --- a/.github/workflows/rust_ci.yml +++ b/.github/workflows/rust_ci.yml @@ -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/xtensa-toolchain@v1.5 with: default: true @@ -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/setup-rust-toolchain@v1.9.0 + 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