From b50dc9aef7a915254ca200de813ebc1b508fedb0 Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Fri, 19 Jan 2024 15:04:26 +0100 Subject: [PATCH] create android build github action --- .github/workflows/build-android.yml | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build-android.yml diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml new file mode 100644 index 000000000..544a5dab2 --- /dev/null +++ b/.github/workflows/build-android.yml @@ -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 \ No newline at end of file