Skip to content

Commit 6d37142

Browse files
Mossakaclaude
andcommitted
Add android-arm64 architecture support
Closes #18263 Add android-arm64 binary to release builds so the extension can be installed on Android ARM64 devices (e.g., via Termux). Changes: - Add android-arm64 to build-release.sh platforms array - Add Android OS detection (via ANDROID_ROOT env var) in install script - Add build-android Makefile target Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 829f156 commit 6d37142

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ build: sync-action-pins sync-action-scripts
2424

2525
# Build for all platforms
2626
.PHONY: build-all
27-
build-all: build-linux build-darwin build-windows
27+
build-all: build-linux build-darwin build-windows build-android
2828

2929
.PHONY: build-linux
3030
build-linux:
@@ -40,6 +40,10 @@ build-darwin:
4040
build-windows:
4141
GOOS=windows GOARCH=amd64 go build $(LDFLAGS) -o $(BINARY_NAME)-windows-amd64.exe ./cmd/gh-aw
4242

43+
.PHONY: build-android
44+
build-android:
45+
CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build $(LDFLAGS) -o $(BINARY_NAME)-android-arm64 ./cmd/gh-aw
46+
4347
# Build WebAssembly module for browser usage
4448
# Optionally runs wasm-opt (from Binaryen) if available for ~8% size reduction
4549
.PHONY: build-wasm

actions/setup-cli/install.sh

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

install-gh-aw.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ ARCH=$(uname -m)
111111
# Normalize OS name
112112
case $OS in
113113
Linux)
114-
OS_NAME="linux"
114+
if [ -n "$ANDROID_ROOT" ]; then
115+
OS_NAME="android"
116+
else
117+
OS_NAME="linux"
118+
fi
115119
;;
116120
Darwin)
117121
OS_NAME="darwin"
@@ -124,7 +128,7 @@ case $OS in
124128
;;
125129
*)
126130
print_error "Unsupported operating system: $OS"
127-
print_info "Supported operating systems: Linux, macOS (Darwin), FreeBSD, Windows"
131+
print_info "Supported operating systems: Linux, macOS (Darwin), FreeBSD, Windows, Android (Termux)"
128132
exit 1
129133
;;
130134
esac

scripts/build-release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ platforms=(
2020
linux-amd64
2121
linux-arm
2222
linux-arm64
23+
android-arm64
2324
windows-amd64
2425
windows-arm64
2526
)

0 commit comments

Comments
 (0)