Skip to content

Commit

Permalink
Implement CI for the mobile platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbat00 committed Jan 7, 2024
1 parent 00dece3 commit fa4c7d5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,53 @@ jobs:
cache-wasm32-cargo
- run: cargo clippy --no-default-features --target=wasm32-unknown-unknown --all-targets --features=${{ matrix.features }} -- -D warnings

clippy_android:
name: Clippy check (android)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
targets: aarch64-linux-android, armv7-linux-androideabi
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cache-android-cargo-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cache-android-cargo-${{ hashFiles('**/Cargo.toml') }}
cache-android-cargo
- run: tree -d $ANDROID_NDK_LATEST_HOME/prebuilt/linux-x86_64/bin
- run: cargo clippy --target=aarch64-linux-android --all-targets -- -D warnings
env:
CC: ${{env.ANDROID_NDK_LATEST_HOME}}/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang

clippy_ios:
name: Clippy check (ios)
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
targets: aarch64-apple-ios
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cache-ios-cargo-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
cache-ios-cargo-${{ hashFiles('**/Cargo.toml') }}
cache-ios-cargo
- run: cargo clippy --target=aarch64-apple-ios --all-targets -- -D warnings

doc:
name: Check documentation
runs-on: ubuntu-latest
Expand Down

0 comments on commit fa4c7d5

Please sign in to comment.