Skip to content

chore: move to monorepo with bun #865

chore: move to monorepo with bun

chore: move to monorepo with bun #865

Workflow file for this run

name: Build Android
on:
push:
branches:
- master
paths:
- '.github/workflows/build-android.yml'
- './packages/react-native-video/android/**'
- 'examples/bare/android/**'
- 'yarn.lock'
- 'examples/bare/yarn.lock'
pull_request:
paths:
- '.github/workflows/build-android.yml'
- './packages/react-native-video/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
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (with bun)
run: bun install
- 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
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (with bun)
run: bun install
- 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 ../../..