Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/2275 Forced all current pods to use the latest available. If this builds successfully, will create a PR against React Native so that they become the default, and remove them here again. This job currently does limit the architectures we build for. Pritesh is investigating if we can wide that again, as this might not be acceptable to RN in general. This doesn't bump the android version to 0.88, as the artifact publishing failed for that version, but since there are currently less problems with the Android version I wanted to go ahead with just iOS. Reviewed By: cekkaewnumchai, priteshrnandgaonkar Differential Revision: D28257283 fbshipit-source-id: a631b1c354617ed356cd1e74b9e8e8aa050eed60
65 lines
2.5 KiB
YAML
65 lines
2.5 KiB
YAML
name: Build React Native example
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build-react-native-example-ios:
|
|
runs-on: macos-latest
|
|
defaults:
|
|
run:
|
|
working-directory: react-native/ReactNativeFlipperExample
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: 12.x
|
|
- uses: maxim-lobanov/setup-cocoapods@v1
|
|
with:
|
|
# Path to Podfile.lock file to determine Cocoapods version
|
|
# n.b. doesn't seem to respect cwd:
|
|
podfile-path: react-native/ReactNativeFlipperExample/ios/Podfile.lock
|
|
- name: Install yarn dependencies
|
|
run: yarn install --ignore-scripts
|
|
- name: Install react-native-flipper
|
|
run: yarn relative-deps
|
|
- name: Install pod dependencies
|
|
run: cd ios && pod install --repo-update
|
|
- name: Build React Native iOS Example debug app
|
|
run: |
|
|
cd ios
|
|
IPHONESIMULATOR=$(xcodebuild -showsdks | grep -o "iphonesimulator[0-9]\\+\\.[0-9]\\+$") && echo $IPHONESIMULATOR
|
|
xcodebuild -workspace ReactNativeFlipperExample.xcworkspace -configuration Debug -scheme ReactNativeFlipperExample -sdk $IPHONESIMULATOR EXCLUDED_ARCHS="arm64 i386"
|
|
|
|
build-react-native-example-android:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: react-native/ReactNativeFlipperExample
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2.1.5
|
|
with:
|
|
node-version: 12.x
|
|
- 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: ${GITHUB_WORKSPACE}/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: Install yarn dependencies
|
|
run: yarn install --ignore-scripts
|
|
- name: Install react-native-flipper
|
|
run: yarn relative-deps
|
|
- name: Build React Native Android Example debug app
|
|
run: |
|
|
mkdir -p android/app/src/main/assets
|
|
yarn react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
|
|
cd android && ./gradlew assembleDebug
|