You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: use CARGO_NDK_TARGET env var instead of repeating --target
cargo-ndk reads CARGO_NDK_TARGET when --target is not passed on the
command line. Setting it once at the job level shortens every test
invocation and lets the rust-toolchain action share the same value.
cargo ndk --target "$ANDROID_TARGET" test --no-run -p iroh-base --all-features
196
-
cargo ndk --target "$ANDROID_TARGET" test --no-run -p iroh-dns --features tls-ring
197
-
cargo ndk --target "$ANDROID_TARGET" test --no-run -p iroh-relay --features tls-ring,metrics
198
-
cargo ndk --target "$ANDROID_TARGET" test --no-run -p iroh --features tls-ring,metrics,portmapper,test-utils
195
+
cargo ndk test --no-run -p iroh-base --all-features
196
+
cargo ndk test --no-run -p iroh-dns --features tls-ring
197
+
cargo ndk test --no-run -p iroh-relay --features tls-ring,metrics
198
+
cargo ndk test --no-run -p iroh --features tls-ring,metrics,portmapper,test-utils
199
199
200
200
- name: Run workspace tests on Android emulator
201
201
uses: reactivecircus/android-emulator-runner@v2
@@ -213,10 +213,10 @@ jobs:
213
213
script: |
214
214
adb wait-for-device
215
215
adb shell 'i=0; while [ -z "$(getprop sys.boot_completed | tr -d "\r")" ]; do i=$((i+1)); if [ $i -gt 300 ]; then echo "boot did not complete within 600s"; exit 1; fi; sleep 2; done'
216
-
cargo ndk --target "$ANDROID_TARGET" test -p iroh-base --all-features
217
-
cargo ndk --target "$ANDROID_TARGET" test -p iroh-dns --features tls-ring
218
-
cargo ndk --target "$ANDROID_TARGET" test -p iroh-relay --features tls-ring,metrics
219
-
cargo ndk --target "$ANDROID_TARGET" test -p iroh --features tls-ring,metrics,portmapper,test-utils
216
+
cargo ndk test -p iroh-base --all-features
217
+
cargo ndk test -p iroh-dns --features tls-ring
218
+
cargo ndk test -p iroh-relay --features tls-ring,metrics
219
+
cargo ndk test -p iroh --features tls-ring,metrics,portmapper,test-utils
0 commit comments