feat: Update Android build workflow to use android-builders and install Node.js

This commit is contained in:
2026-02-27 15:19:40 +05:00
parent 5eabd79a96
commit a36a37844d

View File

@@ -14,15 +14,29 @@ on:
jobs:
build:
runs-on: linux
runs-on: android-builders
container:
image: cimg/android:2024.01
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Install Node.js
run: |
if command -v node &> /dev/null; then
echo "Node.js is already installed"
elif command -v apt-get &> /dev/null; then
sudo apt-get update && sudo apt-get install -y nodejs npm
elif command -v brew &> /dev/null; then
brew install node
elif command -v apk &> /dev/null; then
apk add --no-cache nodejs npm
fi
- name: Setup Gradle wrapper
run: |
chmod +x ./gradlew
./gradlew --version
- name: Build Release APK
run: ./gradlew assembleRelease