ankidroid / Anki-Android-Backend

JNI bridge between AnkiDroid and Anki Desktop's rust code
GNU General Public License v3.0
68 stars 26 forks source link

Scheduled build is broken #399

Closed david-allison closed 2 months ago

david-allison commented 3 months ago

Last pass:

First fail:

thread 'main' panicked at build_rust/src/main.rs:21:9:
Expected ANDROID_NDK_HOME to point to a 26.x NDK. Future versions may work, but are untested.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Warning: Attempt 1 failed. Reason: Child_process exited with error code 101
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/build_rust`
thread 'main' panicked at build_rust/src/main.rs:21:9:
Expected ANDROID_NDK_HOME to point to a 26.x NDK. Future versions may work, but are untested.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Warning: Attempt 2 failed. Reason: Child_process exited with error code 101
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/build_rust`
thread 'main' panicked at build_rust/src/main.rs:21:9:
Expected ANDROID_NDK_HOME to point to a 26.x NDK. Future versions may work, but are untested.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Warning: Attempt 3 failed. Reason: Child_process exited with error code 101
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/build_rust`
thread 'main' panicked at build_rust/src/main.rs:21:9:
Expected ANDROID_NDK_HOME to point to a 26.x NDK. Future versions may work, but are untested.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Warning: Attempt 4 failed. Reason: Child_process exited with error code 101
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/build_rust`
thread 'main' panicked at build_rust/src/main.rs:21:9:
Expected ANDROID_NDK_HOME to point to a 26.x NDK. Future versions may work, but are untested.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Final attempt failed. Child_process exited with error code 101
david-allison commented 3 months ago

Likely the runner image update:

NDK update: https://github.com/actions/runner-images/commit/2a4bc14da46f1f8e358aa902a69edb9bef135472

mikehardy commented 2 months ago

Irritating that the runner versions skew, I remember this was a problem before on some part of the toolchain may have in fact been the NDK when Damien was in here berserking all the code a few months back, but it self-resolved and I suppose we forgot about it.

Correct resolution is to manually set the version which is handled in #402, so this shouldn't recur at least