This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,070 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#file: noinspection SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
@@ -6,68 +7,86 @@ env: | |
rust_toolchain: nightly | ||
|
||
jobs: | ||
compile: | ||
name: Build | ||
format: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Remove `rust-toolchain.toml` | ||
run: rm rust-toolchain.toml | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
~/.cargo/bin | ||
target | ||
key: bluedroid-build | ||
- name: Python setup | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10.8 | ||
- name: Install libclang | ||
run: sudo apt update && sudo apt-get install clang libclang-dev -y | ||
- name: Rust setup | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ env.rust_toolchain }} | ||
components: rustfmt, clippy #, rust-src | ||
default: true | ||
- name: Install `rust-src` | ||
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu | ||
- name: Install `ldproxy` | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: ldproxy | ||
version: latest | ||
use-tool-cache: true | ||
- name: Format check | ||
|
||
- name: Setup | ||
uses: pulse-loop/esp32-rust-action@v1 | ||
|
||
- name: Format | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -- --check | ||
continue-on-error: true | ||
# - name: Clippy | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: clippy | ||
# args: --no-deps --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- -Dwarnings | ||
# continue-on-error: true | ||
- name: Clippy with comments | ||
|
||
clippy: | ||
name: Clippy | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup | ||
uses: pulse-loop/esp32-rust-action@v1 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: target | ||
key: target | ||
|
||
- name: Clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --no-deps --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort | ||
continue-on-error: true | ||
args: --no-deps --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- -Dwarnings | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup | ||
uses: pulse-loop/esp32-rust-action@v1 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: target | ||
key: target | ||
|
||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort | ||
|
||
examples: | ||
name: Build examples | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup | ||
uses: pulse-loop/esp32-rust-action@v1 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: target | ||
key: target | ||
|
||
- name: Build examples | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --examples --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort | ||
args: --examples --target riscv32imc-esp-espidf -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,28 +14,10 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Remove `rust-toolchain.toml` | ||
run: rm rust-toolchain.toml | ||
- name: Python setup | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10.8 | ||
- name: Install libclang | ||
run: sudo apt update && sudo apt-get install clang libclang-dev -y | ||
- name: Rust setup | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ env.rust_toolchain }} | ||
components: rustfmt, clippy #, rust-src | ||
default: true | ||
- name: Install `rust-src` | ||
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu | ||
- name: Install `ldproxy` | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: ldproxy | ||
version: latest | ||
use-tool-cache: true | ||
|
||
- name: Setup | ||
uses: pulse-loop/esp32-rust-action@v1 | ||
|
||
- name: Publish | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
[package] | ||
name = "bluedroid" | ||
version = "0.3.6" | ||
version = "0.3.7" | ||
edition = "2021" | ||
license = "MIT" | ||
description = "A wrapper for the ESP32 Bluedroid Bluetooth stack." | ||
repository = "https://github.com/pulse-loop/bluedroid" | ||
keywords = ["bluetooth", "bluedroid", "esp32", "embedded", "ble"] | ||
categories = ["embedded"] | ||
categories = ["embedded", "hardware-support"] | ||
readme = "README.md" | ||
documentation = "https://docs.rs/bluedroid" | ||
authors = ["Riccardo Persello <[email protected]>"] | ||
|
||
exclude = [ | ||
".embuild", | ||
".idea", | ||
".vscode", | ||
"target", | ||
"Cargo.lock", | ||
] | ||
exclude = [".embuild", ".idea", ".vscode", "target", "Cargo.lock"] | ||
|
||
[package.metadata.esp-idf-sys] | ||
esp_idf_tools_install_dir = "out" | ||
|
@@ -53,4 +47,4 @@ required-features = ["esp-idf-sys/binstart"] | |
[profile.release] | ||
strip = true | ||
opt-level = "z" | ||
lto = true | ||
lto = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.