fix(ci): build frontend before Android cargo check
generate_context! requires ../dist; the android-check job was missing npm ci + vite build, causing proc macro panic on CI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
100b6c292a
commit
e83297eca7
1 file changed
+13
@@ -52,6 +52,12 @@ jobs:
|
||||
echo "AR_aarch64_linux_android=$prebuilt/bin/llvm-ar" >> "$GITHUB_ENV"
|
||||
echo "CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=$prebuilt/bin/aarch64-linux-android24-clang" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: npm
|
||||
cache-dependency-path: openless-all/app/package-lock.json
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: aarch64-linux-android
|
||||
@@ -61,6 +67,13 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y build-essential curl file libssl-dev wget
|
||||
|
||||
- name: Install frontend dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build frontend (tsc + vite)
|
||||
# generate_context! requires frontendDist (../dist) to exist on Android too.
|
||||
run: npm run build
|
||||
|
||||
- name: Check Tauri backend (Android target)
|
||||
run: cargo check --manifest-path src-tauri/Cargo.toml --target aarch64-linux-android
|
||||
|
||||
|
||||
Reference in new issue
Block a user