feat(stores): download Amazon engine on demand

This commit is contained in:
XxJSONDeruloxX committed 2026-10-23 16:50:19 -04:00
1 parent 61482ffee7
commit 9222a1fe4d
28 files changed
+2194 -38

No files matched your search

+9 -2
View File
@@ -450,7 +450,7 @@ jobs:
~/.cargo/git/db
~/.cargo/bin/cargo-ndk
app/src/main/rust/stores/target
key: stores-v2-${{ runner.os }}-${{ runner.arch }}-${{ env.NDK_VERSION }}-${{ steps.rust.outputs.rustc }}-${{ hashFiles('app/src/main/rust/stores/Cargo.lock') }}-${{ hashFiles('app/src/main/rust/stores/src/**', 'app/src/main/rust/stores/Cargo.toml', 'app/src/main/rust/stores/build.rs', 'app/src/main/rust/stores/.cargo/**', 'app/build.gradle') }}
key: stores-v2-${{ runner.os }}-${{ runner.arch }}-${{ env.NDK_VERSION }}-${{ steps.rust.outputs.rustc }}-${{ hashFiles('app/src/main/rust/stores/Cargo.lock') }}-${{ hashFiles('app/src/main/rust/amazon/**', 'tools/stores/**', 'app/src/main/rust/stores/src/**', 'app/src/main/rust/stores/Cargo.toml', 'app/src/main/rust/stores/build.rs', 'app/src/main/rust/stores/.cargo/**', 'app/build.gradle') }}
restore-keys: |
stores-v2-${{ runner.os }}-${{ runner.arch }}-${{ env.NDK_VERSION }}-${{ steps.rust.outputs.rustc }}-${{ hashFiles('app/src/main/rust/stores/Cargo.lock') }}-
stores-v2-${{ runner.os }}-${{ runner.arch }}-${{ env.NDK_VERSION }}-${{ steps.rust.outputs.rustc }}-
@@ -513,7 +513,7 @@ jobs:
python3 tools/release/check_android_libraries.py app/build/outputs/apk/release/app-release.apk \
--readelf "$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readelf"
git diff --stat -- app/src/main/rust/stores/Cargo.lock
git diff --exit-code -- app/src/main/rust/stores/Cargo.lock \
git diff --exit-code -- app/src/main/rust/stores/Cargo.lock app/src/main/rust/amazon/Cargo.lock \
|| { echo "::error::Cargo.lock changed during the build; commit the regenerated lockfile (uploaded as stores-cargo-lock)"; exit 1; }
- name: Store engines host unit tests
@@ -523,6 +523,13 @@ jobs:
cd app/src/main/rust/stores
cargo test --locked 2>&1 | tail -60
- name: Amazon engine host tests
timeout-minutes: 10
run: |
set -euo pipefail
export CARGO_TARGET_DIR="$PWD/app/src/main/rust/stores/target"
cargo test --manifest-path app/src/main/rust/amazon/Cargo.toml --locked
- name: Upload the regenerated Cargo.lock
if: failure()
uses: actions/upload-artifact@v4