Skip to content

Commit 03aa1c9

Browse files
authored
Update android-build.yml
1 parent 6097ed6 commit 03aa1c9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/android-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ jobs:
9393
V8_FROM_SOURCE: 1
9494
# Set API level
9595
ANDROID_NDK_API_LEVEL: '24'
96+
# Python for V8 build scripts
97+
PYTHON: python3
9698
# Linkers
9799
CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER: aarch64-linux-android24-clang
98100
CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER: x86_64-linux-android24-clang
@@ -103,8 +105,10 @@ jobs:
103105
CC_x86_64_linux_android: x86_64-linux-android24-clang
104106
CXX_x86_64_linux_android: x86_64-linux-android24-clang++
105107
AR_x86_64_linux_android: llvm-ar
106-
# GN args for V8 build
107-
EXTRA_GN_ARGS: 'android_ndk_api_level=24 use_jumbo_build=true'
108+
# GN args for V8 build - disable Rust to avoid the missing file error
109+
EXTRA_GN_ARGS: 'android_ndk_api_level=24 use_jumbo_build=true enable_rust=false'
110+
# Set target CPU for GN
111+
GN_ARGS: 'target_os="android" target_cpu="${{ matrix.arch == ''aarch64'' && ''arm64'' || ''x64'' }}"'
108112
run: |
109113
cargo build --target ${{ matrix.arch }}-linux-android --locked
110114

0 commit comments

Comments
 (0)