Skip to content

Commit

Permalink
Merge branch 'main' into chore/update-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoboGu authored Dec 25, 2024
2 parents 3e21910 + 44ba0df commit 31d6ce0
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 403 deletions.
108 changes: 12 additions & 96 deletions .github/workflows/build esp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,110 +21,26 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_esp32c3_ble:
build_esp:
runs-on: ubuntu-22.04
strategy:
matrix:
chip:
- esp32c3
- esp32c6
- esp32s3
example_type:
- use_rust
- use_config
steps:
- uses: cargo-bins/cargo-binstall@main
- uses: actions/checkout@v3
- name: Install ldproxy and espup
run: cargo binstall ldproxy espup -y
- name: Install esp toolchain
run: espup install
- name: Build esp32c3_ble
working-directory: ./examples/use_rust/esp32c3_ble
run: |
cargo +esp build --release
cargo clean
build_esp32c3_ble_with_config:
runs-on: ubuntu-22.04
steps:
- uses: cargo-bins/cargo-binstall@main
- uses: actions/checkout@v3
- name: Install ldproxy and espup
run: cargo binstall ldproxy espup -y
- name: Install esp toolchain
run: espup install
- name: Build esp32c3_ble with config
working-directory: ./examples/use_config/esp32c3_ble
run: |
cargo +esp build --release
cargo clean
build_esp32c6_ble:
runs-on: ubuntu-22.04
steps:
- uses: cargo-bins/cargo-binstall@main
- uses: actions/checkout@v3
- name: Install ldproxy and espup
run: cargo binstall ldproxy espup -y
- name: Install esp toolchain
run: espup install
- name: Build esp32c6_ble
working-directory: ./examples/use_rust/esp32c6_ble
run: |
cargo +esp build --release
cargo clean
build_esp32c6_ble_with_config:
runs-on: ubuntu-22.04
steps:
- uses: cargo-bins/cargo-binstall@main
- uses: actions/checkout@v3
- name: Install ldproxy and espup
run: cargo binstall ldproxy espup -y
- name: Install esp toolchain
run: espup install
- name: Build esp32c6_ble with config
working-directory: ./examples/use_config/esp32c6_ble
run: |
cargo +esp build --release
cargo clean
build_esp32s3_ble:
runs-on: ubuntu-22.04
steps:
- uses: cargo-bins/cargo-binstall@main
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-cargo
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./examples/use_rust/esp32s3_ble/target/
./examples/use_rust/esp32s3_ble/.embuild/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install ldproxy and espup
run: cargo binstall ldproxy espup -y
- name: Install esp toolchain
run: espup install
- name: Build esp32s3_ble
working-directory: ./examples/use_rust/esp32s3_ble
run: |
cargo +esp build --release
cargo clean
build_esp32s3_ble_with_config:
runs-on: ubuntu-22.04
steps:
- uses: cargo-bins/cargo-binstall@main
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache-cargo
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./examples/use_rust/esp32s3_ble/target/
./examples/use_rust/esp32s3_ble/.embuild/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install ldproxy and espup
run: cargo binstall ldproxy espup -y
- name: Install esp toolchain
run: espup install
- name: Build esp32s3_ble with config
working-directory: ./examples/use_config/esp32s3_ble
- name: Build
working-directory: ./examples/${{ matrix.example_type }}/${{ matrix.chip }}_ble
run: |
cargo +esp build --release
cargo clean
Loading

0 comments on commit 31d6ce0

Please sign in to comment.