diff --git a/.github/workflows/rust-android-run-tests-on-emulator.sh b/.github/workflows/rust-android-run-tests-on-emulator.sh index 82d946ced..f7c72e49d 100755 --- a/.github/workflows/rust-android-run-tests-on-emulator.sh +++ b/.github/workflows/rust-android-run-tests-on-emulator.sh @@ -5,7 +5,7 @@ adb wait-for-device while [[ -z "$(adb shell getprop sys.boot_completed | tr -d '\r')" ]]; do sleep 1; done any_failures=0 -for test in $(find target/${{ matrix.target }}/debug/deps/ -type f -executable ! -name "*.so" -name "*-*"); do +for test in $(find target/$TARGET/debug/deps/ -type f -executable ! -name "*.so" -name "*-*"); do adb push "$test" /data/local/tmp/ adb shell chmod +x /data/local/tmp/$(basename "$test") adb shell /data/local/tmp/$(basename "$test") || any_failures=1 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3bfc9a67e..393b3e38b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -144,6 +144,8 @@ jobs: sudo udevadm trigger --name-match=kvm - name: Set up Android Emulator and run tests + env: + TARGET: ${{ matrix.target }} uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ matrix.api-level }}