Skip to content

Commit

Permalink
Implement CI for the mobile platform
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbat00 committed Jan 7, 2024
1 parent 4f7b554 commit c0d9e7c
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,73 @@ 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
strategy:
fail-fast: false
matrix:
features:
[
"immutable_ctx",
"manage_clipboard",
"open_url",
"manage_clipboard,open_url",
]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
targets: aarch64-linux-android
- 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: |
CC=$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android34-clang \
AR=$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar \
cargo clippy --target=aarch64-linux-android --no-default-features --all-targets --features=${{ matrix.features }} -- -D warnings
clippy_ios:
name: Clippy check (ios)
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
features:
[
"immutable_ctx",
"manage_clipboard",
"open_url",
"manage_clipboard,open_url",
]
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 --no-default-features --all-targets --features=${{ matrix.features }} -- -D warnings

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

0 comments on commit c0d9e7c

Please sign in to comment.