From 62f39e5025a38640a81414f329659e4b6657dc92 Mon Sep 17 00:00:00 2001 From: okhsunrog Date: Fri, 29 Nov 2024 02:34:51 +0300 Subject: [PATCH] added CI job --- .forgejo/workflows/rust_build.yml | 37 +++++++++++++++++++++++++++++++ Cargo.lock | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/rust_build.yml diff --git a/.forgejo/workflows/rust_build.yml b/.forgejo/workflows/rust_build.yml new file mode 100644 index 0000000..9e75c6d --- /dev/null +++ b/.forgejo/workflows/rust_build.yml @@ -0,0 +1,37 @@ +name: Rust Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + + - name: Install rust-src + run: rustup toolchain install nightly --component rust-src + + - name: Install RISC-V target + run: rustup target add riscv32imc-unknown-none-elf + + - name: Build Release + run: cargo build --release + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: esp-hal-snippets + path: target/riscv32imc-unknown-none-elf/release/esp-hal-snippets + + diff --git a/Cargo.lock b/Cargo.lock index 0902f67..e0ac32d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -625,7 +625,7 @@ dependencies = [ ] [[package]] -name = "esp_hal_probe" +name = "esp_hal_snippets" version = "0.1.0" dependencies = [ "defmt",