Files
flipper/.github/workflows/android-sample.yml
Pascal Hartig f3f0756da7 Update android-sample.yml (#2432)
Summary:
This should take care of the build issue. It's an annoying caching issue that's been around for ages. Also why it didn't happen locally.

Pull Request resolved: https://github.com/facebook/flipper/pull/2432

Test Plan: GitHub CI

Reviewed By: mweststrate

Differential Revision: D28958707

Pulled By: passy

fbshipit-source-id: 8538f6616dec934d924c04713af93e7a6b89e617
2021-06-08 03:08:46 -07:00

36 lines
1.1 KiB
YAML

name: Build Sample App
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install NDK 21
run: echo "y" | sudo /usr/local/lib/android/sdk/tools/bin/sdkmanager --install "ndk;21.0.6113669" "ndk;20.0.5594570" --sdk_root=${ANDROID_SDK_ROOT}
- name: Compute build cache
run: ./scripts/checksum-android.sh checksum-android.txt
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum-android.txt') }}
- name: Build sample apps with Gradle
run: ./gradlew :sample:assembleDebug :tutorial:assembleDebug
- name: Build remaining artifacts with Gradle
run: ./gradlew assembleDebug
- name: upload artifact
uses: actions/upload-artifact@v1
with:
name: sample-app.apk
path: android/sample/build/outputs/apk/debug/sample-debug.apk