Files
App/.github/workflows/build-android.yml
T
Ritesh Shukla a6b575c998 React native upgrade to 0.81 (#472)
React Native and dependency upgrades
2025-08-14 06:30:10 -05:00

60 lines
1.7 KiB
YAML

name: Build Android APK
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-android:
runs-on: macos-15
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
- name: 🖥 Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: 💎 Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Match your local Ruby version
bundler-cache: true
- name: 💬 Echo package.json version to Github ENV
run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
- uses: actions/cache@v3
with:
path: |
node_modules
~/.gradle/caches
~/.gradle/wrapper
~/.cache/turbo
android/.gradle
android/app/build
key: ${{ runner.os }}-gradle-turbo-${{ hashFiles('**/yarn.lock', '**/build.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-turbo-
- name: 🤖 Run yarn init-android
run: yarn install --network-concurrency 1
- name: 🚀 Run turbo build
run: yarn android-build
- name: 📦 Upload APK for testing
uses: actions/upload-artifact@v4
if: always()
with:
name: jellify-android-pr-${{ github.event.number }}-${{ env.VERSION_NUMBER }}
path: |
android/app/build/outputs/apk/release/*.apk
retention-days: 7
if-no-files-found: warn