chore: update bot feature req message (#4341) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Android | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/build-android.yml' | |
- 'android/**' | |
- 'examples/bare/android/**' | |
- 'yarn.lock' | |
- 'examples/bare/yarn.lock' | |
pull_request: | |
paths: | |
- '.github/workflows/build-android.yml' | |
- 'android/**' | |
- 'examples/bare/android/**' | |
- 'yarn.lock' | |
- 'examples/bare/yarn.lock' | |
jobs: | |
build: | |
name: Build Android Example App | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
java-package: jdk | |
- name: Install node_modules at Root | |
uses: ./.github/actions/setup-node | |
with: | |
working-directory: ./ | |
- name: Build Library | |
run: yarn build | |
- name: Install node_modules at Example | |
uses: ./.github/actions/setup-node | |
with: | |
working-directory: examples/bare | |
- name: Restore Gradle cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run Gradle Build for bare example | |
run: cd examples/bare/android && ./gradlew assembleDebug --build-cache && cd ../../.. | |
build-with-ads: | |
name: Build Android Example App With Ads | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
java-package: jdk | |
- name: Install node_modules at Root | |
uses: ./.github/actions/setup-node | |
with: | |
working-directory: ./ | |
- name: Build Library | |
run: yarn build | |
- name: Install node_modules at Example | |
uses: ./.github/actions/setup-node | |
with: | |
working-directory: examples/bare | |
- name: Restore Gradle cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Run Gradle Build for bare example | |
run: cd examples/bare/android && export RNV_SAMPLE_ENABLE_ADS=true && ./gradlew assembleDebug --build-cache && cd ../../.. |