Update ci.yml #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: nttld/[email protected] | |
with: | |
ndk-version: r26b | |
- uses: actions-rs/[email protected] | |
with: | |
toolchain: nightly | |
override: true | |
- run: rustup target add | |
aarch64-linux-android | |
armv7-linux-androideabi | |
x86_64-linux-android | |
i686-linux-android | |
- run: cargo install cargo-ndk | |
- run: apt install gcc-multilib | |
- name: check codes | |
run: cargo ndk -t arm64-v8a --platform=29 check --verbose --target aarch64-linux-android | |
- name: run tests | |
run: cargo ndk -t arm64-v8a --platform=29 test --verbose --target aarch64-linux-android |