From db88ccca9a065719b0c5542534614d734dee532c Mon Sep 17 00:00:00 2001 From: mvlabat Date: Sat, 6 Jan 2024 14:10:52 +0200 Subject: [PATCH] Implement CI for the mobile platforms --- .github/workflows/check.yml | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 640d71469..eccf0901a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -82,6 +82,55 @@ 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: stat ${{env.ANDROID_NDK_LATEST_HOME}}/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang + - run: ls ${{env.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