|
1 | 1 | name: iOS |
2 | 2 |
|
| 3 | +env: |
| 4 | + APP_ARCHIVE_PATH: sentry_react_native.app.zip |
| 5 | + |
3 | 6 | jobs: |
4 | 7 | build-ios: |
5 | 8 | name: iOS |
6 | 9 | runs-on: macos-14 |
7 | 10 | steps: |
8 | 11 | - uses: actions/checkout@v4 |
9 | 12 |
|
10 | | - - uses: actions/setup-node@v4 |
11 | | - with: |
12 | | - node-version: 18 |
13 | | - cache: 'npm' |
14 | | - cache-dependency-path: package-lock.json |
15 | | - |
16 | | - - run: npm ci |
17 | | - |
18 | | - - uses: ruby/setup-ruby@v1 |
19 | | - with: |
20 | | - ruby-version: '3.3.0' |
21 | | - bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
22 | | - |
23 | | - - working-directory: ios |
24 | | - run: bundle exec pod install |
25 | | - |
26 | | - - name: Run xcodebuild |
27 | | - working-directory: ios |
28 | | - run: | |
29 | | - mkdir -p "DerivedData" |
30 | | - derivedData="$(cd "DerivedData" ; pwd -P)" |
31 | | - set -o pipefail && xcodebuild \ |
32 | | - -workspace sentry_react_native.xcworkspace \ |
33 | | - -configuration "Release" \ |
34 | | - -scheme sentry_react_native \ |
35 | | - -destination 'generic/platform=iOS Simulator' \ |
36 | | - -derivedDataPath "$derivedData" \ |
37 | | - build \ |
38 | | - | tee xcodebuild.log \ |
39 | | - | xcbeautify --quieter --is-ci --disable-colored-output |
40 | | -
|
41 | | - - name: Upload APP |
42 | | - uses: actions/upload-artifact@v4 |
43 | | - with: |
44 | | - name: empower-plant-react-native-ios |
45 | | - path: ios/DerivedData/Build/Products/Release-iphonesimulator/sentry_react_native.app |
46 | | - retention-days: 60 |
47 | | - |
48 | | - - name: Upload logs |
49 | | - if: ${{ always() }} |
50 | | - uses: actions/upload-artifact@v4 |
51 | | - with: |
52 | | - name: build-ios-logs |
53 | | - path: ios/xcodebuild.log |
| 13 | + - uses: actions/setup-node@v4 |
| 14 | + with: |
| 15 | + node-version: 18 |
| 16 | + cache: 'npm' |
| 17 | + cache-dependency-path: package-lock.json |
| 18 | + |
| 19 | + - run: npm ci |
| 20 | + |
| 21 | + - uses: ruby/setup-ruby@v1 |
| 22 | + with: |
| 23 | + ruby-version: '3.3.0' |
| 24 | + bundler-cache: true # runs 'bundle install' and caches installed gems automatically |
| 25 | + |
| 26 | + - working-directory: ios |
| 27 | + run: bundle exec pod install |
| 28 | + |
| 29 | + - name: Run xcodebuild |
| 30 | + working-directory: ios |
| 31 | + run: | |
| 32 | + mkdir -p "DerivedData" |
| 33 | + derivedData="$(cd "DerivedData" ; pwd -P)" |
| 34 | + set -o pipefail && xcodebuild \ |
| 35 | + -workspace sentry_react_native.xcworkspace \ |
| 36 | + -configuration "Release" \ |
| 37 | + -scheme sentry_react_native \ |
| 38 | + -destination 'generic/platform=iOS Simulator' \ |
| 39 | + -derivedDataPath "$derivedData" \ |
| 40 | + build \ |
| 41 | + | tee xcodebuild.log \ |
| 42 | + | xcbeautify --quieter --is-ci --disable-colored-output |
| 43 | +
|
| 44 | + - name: Archive App |
| 45 | + run: | |
| 46 | + zip -r \ |
| 47 | + ${{ env.APP_ARCHIVE_PATH }} \ |
| 48 | + ios/DerivedData/Build/Products/Release-iphonesimulator/sentry_react_native.app |
| 49 | +
|
| 50 | + - name: Upload APP |
| 51 | + uses: actions/upload-artifact@v4 |
| 52 | + with: |
| 53 | + name: empower-plant-react-native-ios |
| 54 | + path: ${{ env.APP_ARCHIVE_PATH }} |
| 55 | + retention-days: 60 |
| 56 | + |
| 57 | + - name: Upload logs |
| 58 | + if: ${{ always() }} |
| 59 | + uses: actions/upload-artifact@v4 |
| 60 | + with: |
| 61 | + name: build-ios-logs |
| 62 | + path: ios/xcodebuild.log |
0 commit comments