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 a0b0b06
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 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,21 @@ 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
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/partition-table.bin

0 comments on commit a0b0b06

Please sign in to comment.