|
73 | 73 | run: | |
74 | 74 | yarn |
75 | 75 | yarn test --forceExit |
| 76 | + metro-ios: |
| 77 | + name: "Metro bundling for iOS" |
| 78 | + runs-on: macos-latest |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v3 |
| 81 | + - uses: actions/setup-node@v3 |
| 82 | + with: |
| 83 | + node-version: ${{ env.NODE_VERSION }} |
| 84 | + - run: | |
| 85 | + yarn |
| 86 | + yarn build |
| 87 | + cd fixture |
| 88 | + yarn |
| 89 | + mkdir -p /tmp/artifacts |
| 90 | + yarn react-native bundle --entry-file index.js --platform ios --bundle-output /tmp/artifacts/bundle.js --sourcemap-output /tmp/artifacts/output.map |
| 91 | + metro-android: |
| 92 | + name: "Metro bundling for Android" |
| 93 | + runs-on: ubuntu-latest |
| 94 | + steps: |
| 95 | + - uses: actions/checkout@v3 |
| 96 | + - uses: actions/setup-node@v3 |
| 97 | + with: |
| 98 | + node-version: ${{ env.NODE_VERSION }} |
| 99 | + - run: | |
| 100 | + cd fixture |
| 101 | + yarn |
| 102 | + cd android |
| 103 | + mkdir -p /tmp/artifacts |
| 104 | + ./gradlew bundleDebugJsAndAssets |
| 105 | + build-ios: |
| 106 | + name: "Build iOS" |
| 107 | + runs-on: macos-latest |
| 108 | + steps: |
| 109 | + - uses: actions/checkout@v3 |
| 110 | + - uses: actions/setup-node@v3 |
| 111 | + with: |
| 112 | + node-version: ${{ env.NODE_VERSION }} |
| 113 | + - name: ruby setup |
| 114 | + uses: ruby/setup-ruby@v1 |
| 115 | + with: |
| 116 | + ruby-version: ${{ env.RUBY_VERSION }} |
| 117 | + bundler-cache: true |
| 118 | + - run: | |
| 119 | + bundle install |
| 120 | + cd fixture |
| 121 | + yarn |
| 122 | + cd ios |
| 123 | + bundle exec pod install |
| 124 | + mkdir -p /tmp/artifacts |
| 125 | + set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean build -scheme ReactNativePerformanceFixture -workspace ReactNativePerformanceFixture.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' | tee /tmp/artifacts/ios_build.log |
| 126 | + - name: Archive iOS build artifacts |
| 127 | + uses: actions/upload-artifact@v3 |
| 128 | + with: |
| 129 | + name: ios-build-artifacts |
| 130 | + path: /tmp/artifacts |
| 131 | + build-android: |
| 132 | + name: "Build Android" |
| 133 | + runs-on: ubuntu-latest |
| 134 | + steps: |
| 135 | + - uses: actions/checkout@v3 |
| 136 | + - uses: actions/setup-node@v3 |
| 137 | + with: |
| 138 | + node-version: ${{ env.NODE_VERSION }} |
| 139 | + - name: ruby setup |
| 140 | + uses: ruby/setup-ruby@v1 |
| 141 | + with: |
| 142 | + ruby-version: ${{ env.RUBY_VERSION }} |
| 143 | + bundler-cache: true |
| 144 | + - run: | |
| 145 | + bundle install |
| 146 | + cd fixture |
| 147 | + yarn |
| 148 | + cd android |
| 149 | + ./gradlew assembleDebug |
0 commit comments