Skip to content

Commit

Permalink
GitHub CI: test build on android
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxiaocheng0201 committed Oct 21, 2024
1 parent 289ba83 commit 0f512eb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,30 @@ jobs:
cargo clippy --all-targets
cargo fmt --check
cargo-test-android:
name: Build (Android ${{ matrix.target }})
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-linux-android
- armv7-linux-androideabi
- x86_64-linux-android
- i686-linux-android
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build
run: |
export TEST_DIR=$RUNNER_TEMP
cargo test --target ${{ matrix.target }} --release --verbose
- name: Lint
run: |
cargo clippy --all-targets
cargo fmt --check
cargo-test-wasi:
name: Build (wasi)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0f512eb

Please sign in to comment.