Summary: This diff bumps `actions/checkout@v3.5.3`, `actions/setup-java@v3.11.0`, `actions/cache@v3.3.1` & `actions/upload-artifact@v3.1.2` ### Ref.: - `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3 - `actions/setup-java@v3.11.0` changelog: https://github.com/actions/setup-java/releases/tag/v3.11.0 - `actions/cache@v3.3.1` changelog: https://github.com/actions/cache/releases/tag/v3.3.1 - `actions/upload-artifact@v3.1.2` changelog: https://github.com/actions/upload-artifact/releases/tag/v3.1.2 ## Changelog: [GENERAL] [SECURITY] - [Actions] `android-sample` - Bump `actions/`- `checkout@v3.5.3`, `setup-java@v3.11.0`, `cache@v3.3.1` & `upload-artifact@v3.1.2` Pull Request resolved: https://github.com/facebook/flipper/pull/4874 Test Plan: - Workflow should run and work as usual. Reviewed By: lblasa Differential Revision: D47089304 Pulled By: passy fbshipit-source-id: 5c99ab1babed4357daadba97ecc5fd702386c5e4
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Build Android Sample App
|
|
# This action runs on 'git push' and PRs
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.5.3
|
|
- name: set up JDK
|
|
uses: actions/setup-java@v3.11.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 17
|
|
- name: Compute build cache
|
|
run: ./scripts/checksum-android.sh checksum-android.txt
|
|
- uses: actions/cache@v3.3.1
|
|
with:
|
|
path: |
|
|
~/.gradle/caches/modules-*
|
|
~/.gradle/caches/jars-*
|
|
~/.gradle/caches/build-cache-*
|
|
key: gradle-${{ hashFiles('checksum-android.txt') }}
|
|
- name: Build debug artifact
|
|
run: ./gradlew :android:assembleDebug
|
|
- name: Verify libraries in artifact
|
|
run: scripts/verify-android-libraries.sh
|
|
- 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@v3.1.2
|
|
with:
|
|
name: sample-app.apk
|
|
path: android/sample/build/outputs/apk/debug/sample-debug.apk
|