Skip to content

Commit

Permalink
create android build github action
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed Jan 19, 2024
1 parent 4bcbf7c commit b50dc9a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test Android build
on:
pull_request:
paths:
- .github/workflows/android-build.yml
- android/**
- example/package.json
- example/android/**
merge_group:
branches:
- main
push:
# commented out for test purposes
# branches:
# - main
# paths:
# - .github/workflows/android-build.yml
# - android/**
# - example/package.json
# - example/android/**

jobs:
build_android:
runs-on: ubuntu-latest
strategy:
matrix: {dir: ['example']}
fail-fast: false
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Setup Java 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11

- name: Install root & example node dependencies
run: yarn install --immutable

- name: Build app
working-directory: ${{ matrix.working-directory }}/android
run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a

0 comments on commit b50dc9a

Please sign in to comment.