Add CI workflow (#4054)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/4054 Build RNW example on Github Reviewed By: aigoncharov Differential Revision: D39257309 fbshipit-source-id: dda414c025bfe6720449fe6c3d81fe9fb9373b2a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c7a53fd05
commit
8fb7c503b8
34
.github/workflows/react-native-example.yml
vendored
34
.github/workflows/react-native-example.yml
vendored
@@ -60,3 +60,37 @@ jobs:
|
|||||||
mkdir -p android/app/src/main/assets
|
mkdir -p android/app/src/main/assets
|
||||||
yarn react-native bundle --platform android --dev true --entry-file index.native.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
|
yarn react-native bundle --platform android --dev true --entry-file index.native.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
|
||||||
cd android && ./gradlew assembleDebug
|
cd android && ./gradlew assembleDebug
|
||||||
|
|
||||||
|
build-react-native-example-windows:
|
||||||
|
runs-on: windows-2019
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: react-native/ReactNativeFlipperExample
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2.1.5
|
||||||
|
with:
|
||||||
|
node-version: 14.x
|
||||||
|
- uses: nuget/setup-nuget@v1
|
||||||
|
with:
|
||||||
|
nuget-version: '5.x'
|
||||||
|
- uses: microsoft/setup-msbuild@v1.1
|
||||||
|
- name: Gather environment info
|
||||||
|
run: npx envinfo
|
||||||
|
- name: Install vcpkg packages
|
||||||
|
run: vcpkg install openssl:x64-uwp openssl:arm-uwp
|
||||||
|
- name: Integrate vcpkg
|
||||||
|
run: vcpkg integrate install
|
||||||
|
- name: Install yarn dependencies (react-native-flipper)
|
||||||
|
run: yarn install
|
||||||
|
working-directory: react-native/react-native-flipper
|
||||||
|
- name: Nuget restore (react-native-flipper)
|
||||||
|
run: nuget install ReactNativeFlipper/packages.config
|
||||||
|
working-directory: react-native/react-native-flipper/windows
|
||||||
|
- name: Install yarn dependencies
|
||||||
|
run: yarn install
|
||||||
|
- name: Install react-native-flipper
|
||||||
|
run: yarn relative-deps
|
||||||
|
- name: Build React Native Windows Example debug app
|
||||||
|
shell: powershell
|
||||||
|
run: npx react-native run-windows --logging --no-autolink --no-packager --no-deploy --no-launch --arch x64
|
||||||
|
|||||||
Reference in New Issue
Block a user