File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ jobs:
109109 - target : aarch64-unknown-linux-gnu
110110 strip : llvm-strip
111111 image : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
112+ - target : aarch64-linux-android
113+ strip : llvm-strip
114+ image : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
112115 - target : armv7-unknown-linux-gnueabihf
113116 strip : llvm-strip
114117 image : ghcr.io/napi-rs/napi-rs/nodejs-rust@sha256:c22284b2d79092d3e885f64ede00f6afdeb2ccef7e2b6e78be52e7909091cd57
@@ -133,6 +136,14 @@ jobs:
133136 - name : Install Rust
134137 uses : dtolnay/rust-toolchain@stable
135138
139+ - name : Setup Android NDK
140+ if : ${{ matrix.target == 'aarch64-linux-android' }}
141+ run : |
142+ sudo apt update && sudo apt install unzip -y
143+ cd /tmp
144+ wget -q https://dl.google.com/android/repository/android-ndk-r28-linux.zip -O /tmp/ndk.zip
145+ unzip ndk.zip
146+
136147 - name : Setup cross compile toolchain
137148 if : ${{ matrix.setup }}
138149 run : ${{ matrix.setup }}
@@ -144,8 +155,11 @@ jobs:
144155 - name : Build release
145156 run : yarn build-release
146157 env :
158+ ANDROID_NDK_LATEST_HOME : /tmp/android-ndk-r28
147159 RUST_TARGET : ${{ matrix.target }}
148160 - name : Build CLI
161+ env :
162+ ANDROID_NDK_LATEST_HOME : /tmp/android-ndk-r28
149163 run : |
150164 yarn napi build --bin lightningcss --release --features cli --target ${{ matrix.target }}
151165 mv target/${{ matrix.target }}/release/lightningcss lightningcss
You can’t perform that action at this time.
0 commit comments