Skip to content

Commit

Permalink
android: fix test build #build-android
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Oct 13, 2024
1 parent c0c97a3 commit e6b7c63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
rust: [ stable ]
api-level: [ 35 ]
api-level: [ 34 ]
ndk-version: [ '27.1.12297006' ]
cmake-version: [ '3.30.4' ]
continue-on-error: ${{ matrix.rust != 'stable' && matrix.rust != 'beta' }}
Expand Down Expand Up @@ -56,6 +56,11 @@ jobs:
run: rustup run ${{ matrix.rust }} cargo build --test test_android

# Check if AVD is in cache, else create AVD
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
Expand Down
2 changes: 1 addition & 1 deletion tests/test-android-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ ndk-glue = "0.7"
webbrowser = { path = "../.." }

[package.metadata.android.sdk]
target_sdk_version = 35
target_sdk_version = 34

0 comments on commit e6b7c63

Please sign in to comment.