Add apk build and alter CI

This commit is contained in:
enfipy 2020-10-27 21:14:42 +02:00
parent f8775b1e7b
commit 0ff26d163d
No known key found for this signature in database
GPG key ID: 7B671F66C66BD126
3 changed files with 43 additions and 9 deletions

View file

@ -3,6 +3,7 @@ name: cpal
on: [push, pull_request]
jobs:
clippy-test:
runs-on: ubuntu-latest
steps:
@ -224,3 +225,18 @@ jobs:
run: cargo check --example feedback --target armv7-linux-androideabi --verbose
- name: Check record_wav
run: cargo check --example record_wav --target armv7-linux-androideabi --verbose
android-apk-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Android targets
run: |
rustup target add armv7-linux-androideabi
rustup target add aarch64-linux-android
rustup target add i686-linux-android
rustup target add x86_64-linux-android
- name: Install Cargo APK
run: cargo install cargo-apk
- name: Build APK
run: cargo apk build --example beep