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: jobs:
build: build:
runs-on: linux runs-on: android-builders
container: container:
image: cimg/android:2024.01 image: cimg/android:2024.01
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Make gradlew executable - name: Install Node.js
run: chmod +x ./gradlew 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 - name: Build Release APK
run: ./gradlew assembleRelease run: ./gradlew assembleRelease