Skip to content

Commit 0e1af11

Browse files
authored
[v4] Android binaries for Oxide (tailwindlabs#13115)
1 parent 0a57d33 commit 0e1af11

File tree

8 files changed

+65
-0
lines changed

8 files changed

+65
-0
lines changed

.github/workflows/release-oxide.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ jobs:
3434
target: aarch64-apple-darwin
3535
page-size: 14
3636
strip: strip -x # Must use -x on macOS. This produces larger results on linux.
37+
# Android
38+
- os: ubuntu-latest
39+
target: aarch64-linux-android
40+
strip: ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip
41+
- os: ubuntu-latest
42+
target: armv7-linux-androideabi
43+
strip: ${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip
3744
# Linux
3845
- os: ubuntu-latest
3946
target: x86_64-unknown-linux-gnu
@@ -199,6 +206,8 @@ jobs:
199206
cp bindings-x86_64-pc-windows-msvc/* ./npm/win32-x64-msvc/
200207
cp bindings-x86_64-apple-darwin/* ./npm/darwin-x64/
201208
cp bindings-aarch64-apple-darwin/* ./npm/darwin-arm64/
209+
cp bindings-aarch64-linux-android/* ./npm/android-arm64/
210+
cp bindings-armv7-linux-androideabi/* ./npm/android-arm-eabi/
202211
cp bindings-aarch64-unknown-linux-gnu/* ./npm/linux-arm64-gnu/
203212
cp bindings-aarch64-unknown-linux-musl/* ./npm/linux-arm64-musl/
204213
cp bindings-armv7-unknown-linux-gnueabihf/* ./npm/linux-arm-gnueabihf/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Don't error on `@apply` with leading/trailing whitespace ([#13144](https://github.com/tailwindlabs/tailwindcss/pull/13144))
1313

14+
### Added
15+
16+
- Add Android builds ([#13115](https://github.com/tailwindlabs/tailwindcss/pull/13115))
17+
1418
## [4.0.0-alpha.6] - 2024-03-07
1519

1620
### Fixed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@tailwindcss/oxide-android-arm-eabi`
2+
3+
This is the **armv7-linux-android-eabi** binary for `@tailwindcss/oxide`
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@tailwindcss/oxide-android-arm-eabi",
3+
"version": "4.0.0-alpha.3",
4+
"os": [
5+
"android"
6+
],
7+
"cpu": [
8+
"arm"
9+
],
10+
"main": "tailwindcss-oxide.android-arm-eabi.node",
11+
"files": [
12+
"tailwindcss-oxide.android-arm-eabi.node"
13+
],
14+
"license": "MIT",
15+
"engines": {
16+
"node": ">= 10"
17+
}
18+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@tailwindcss/oxide-android-arm64`
2+
3+
This is the **aarch64-linux-android** binary for `@tailwindcss/oxide`
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@tailwindcss/oxide-android-arm64",
3+
"version": "4.0.0-alpha.3",
4+
"os": [
5+
"android"
6+
],
7+
"cpu": [
8+
"arm64"
9+
],
10+
"main": "tailwindcss-oxide.android-arm64.node",
11+
"files": [
12+
"tailwindcss-oxide.android-arm64.node"
13+
],
14+
"license": "MIT",
15+
"engines": {
16+
"node": ">= 10"
17+
}
18+
}

oxide/crates/node/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"name": "tailwindcss-oxide",
88
"triples": {
99
"additional": [
10+
"armv7-linux-androideabi",
11+
"aarch64-linux-android",
1012
"aarch64-apple-darwin",
1113
"aarch64-unknown-linux-gnu",
1214
"aarch64-unknown-linux-musl",
@@ -36,6 +38,7 @@
3638
"version": "npx napi version"
3739
},
3840
"optionalDependencies": {
41+
"@tailwindcss/oxide-android-arm64": "workspace:*",
3942
"@tailwindcss/oxide-darwin-arm64": "workspace:*",
4043
"@tailwindcss/oxide-darwin-x64": "workspace:*",
4144
"@tailwindcss/oxide-freebsd-x64": "workspace:*",

pnpm-lock.yaml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)