Skip to content

fix(linux): use tokio for BtlePlugConnection #352

fix(linux): use tokio for BtlePlugConnection

fix(linux): use tokio for BtlePlugConnection #352

Workflow file for this run

name: "lint"
on:
- push
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --check
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin # See 'Supported distributions' for available options
java-version: 17
- name: Download ktlint
run: |
curl -sSL https://api.github.com/repos/pinterest/ktlint/releases/latest |
jq '.assets[].browser_download_url | select(endswith("ktlint"))' |
xargs curl -sSLO
chmod +x ktlint
- name: Run ktlint
run: |
cd android
../ktlint