Skip to content

Commit a04f22c

Browse files
committed
f
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 76f6eb8 commit a04f22c

File tree

2 files changed

+15
-24
lines changed

2 files changed

+15
-24
lines changed

.github/workflows/main.yml

+8-21
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
platform:
24-
- { target: aarch64-linux-android, arch: arm64-v8a }
25-
- { target: x86_64-linux-android, arch: x86_64 }
24+
- {
25+
target: aarch64-linux-android,
26+
avd_arch: arm64-v8a,
27+
arch: aarch64,
28+
}
29+
- { target: x86_64-linux-android, avd_arch: x86_64, arch: x86_64 }
2630
features:
2731
[
2832
"",
@@ -31,20 +35,6 @@ jobs:
3135
]
3236
steps:
3337
- uses: actions/checkout@v4
34-
- name: Set up JDK 17
35-
uses: actions/setup-java@v4
36-
with:
37-
java-version: "17"
38-
distribution: "temurin"
39-
- name: Setup Android SDK
40-
uses: android-actions/setup-android@v3
41-
with:
42-
packages: "tools platform-tools platforms;android-33"
43-
- name: Install Android NDK
44-
uses: nttld/setup-ndk@v1
45-
id: setup-ndk
46-
with:
47-
ndk-version: r26c
4838
- name: Install rust
4939
id: toolchain
5040
uses: dtolnay/rust-toolchain@1.81.0
@@ -81,9 +71,8 @@ jobs:
8171
uses: reactivecircus/android-emulator-runner@v2
8272
with:
8373
api-level: 30
84-
ndk: ${{ steps.setup-ndk.outputs.ndk-full-version }}
8574
force-avd-creation: false
86-
arch: ${{ matrix.platform.arch }}
75+
arch: ${{ matrix.platform.avd_arch }}
8776
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
8877
disable-animations: false
8978
script: echo "Generated AVD snapshot for caching."
@@ -92,11 +81,9 @@ jobs:
9281
uses: reactivecircus/android-emulator-runner@v2
9382
env:
9483
RANLIB: "${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib"
95-
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
9684
with:
9785
api-level: 30
98-
ndk: ${{ steps.setup-ndk.outputs.ndk-full-version }}
99-
arch: ${{ matrix.platform.arch }}
86+
arch: ${{ matrix.platform.avd_arch }}
10087
force-avd-creation: false
10188
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
10289
disable-animations: true

Cargo.toml

+7-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,19 @@ libc = "0.2"
3939
log = "0.4"
4040
glow = "0.16"
4141
osmesa-sys = { version = "0.1", optional = true }
42-
rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = ["std"], optional = true }
43-
rwh_06 = { package = "raw-window-handle", version = "0.6.2", features = ["std"], optional = true }
42+
rwh_05 = { package = "raw-window-handle", version = "0.5.2", features = [
43+
"std",
44+
], optional = true }
45+
rwh_06 = { package = "raw-window-handle", version = "0.6.2", features = [
46+
"std",
47+
], optional = true }
4448

4549
[dev-dependencies]
4650
clap = "2"
4751
gl = "0.14"
4852
png = "0.17"
4953
rand = "0.8"
50-
winit = "0.29"
54+
winit = { version = "0.29.10", features = ["android-native-activity"] }
5155
serial_test = "3.1.0"
5256

5357
[target.'cfg(target_os = "macos")'.dependencies]

0 commit comments

Comments
 (0)