|
39 | 39 | # Run the job only for PRs with related changes or non-PR events. |
40 | 40 | if: github.event_name != 'pull_request' || needs.files-changed.outputs.run_test_cross_platform_for_prs == 'true' |
41 | 41 | needs: files-changed |
42 | | - runs-on: macos-15 |
| 42 | + runs-on: ["ghcr.io/cirruslabs/macos-runner:sequoia", "runner_group_id:10"] |
43 | 43 | # This job can take a while to run, so we set a timeout. |
44 | 44 | timeout-minutes: 30 |
45 | 45 | steps: |
|
61 | 61 |
|
62 | 62 | - name: Enable Corepack |
63 | 63 | working-directory: sentry-react-native |
64 | | - run: npm i -g corepack |
| 64 | + run: npm i -g corepack --force |
65 | 65 |
|
66 | 66 | - uses: actions/setup-node@v6 |
67 | 67 | with: |
|
70 | 70 | cache-dependency-path: sentry-react-native/yarn.lock |
71 | 71 | - run: ./sentry-cocoa/scripts/ci-select-xcode.sh 16.4 |
72 | 72 |
|
| 73 | + - name: Ensure required runtime is loaded |
| 74 | + # Ideally we will not need this, but CI sometimes is failing to load some runtimes, this will ensure they are loaded |
| 75 | + timeout-minutes: 5 # 5 minutes timeout |
| 76 | + env: |
| 77 | + OS_VERSION: "18.4" |
| 78 | + run: ./sentry-cocoa/scripts/ci-ensure-runtime-loaded.sh --os-version "$OS_VERSION" |
| 79 | + |
73 | 80 | - name: Create simulator device for iOS 18.4 |
74 | 81 | run: ./sentry-cocoa/scripts/ci-create-simulator.sh --platform "iOS" --os-version "18.4" --device-name "iPhone 15 Pro" |
75 | 82 |
|
|
87 | 94 | working-directory: sentry-react-native/packages/core/RNSentryCocoaTester |
88 | 95 | run: sed -i '' "s/parallelizable = \"YES\"/parallelizable = \"NO\"/" RNSentryCocoaTester.xcodeproj/xcshareddata/xcschemes/RNSentryCocoaTester.xcscheme |
89 | 96 |
|
| 97 | + - name: Change ruby to 3.3.10 |
| 98 | + # We use the same ruby version used by Cirrus to install fastlane and other tools |
| 99 | + # see: https://github.com/cirruslabs/macos-image-templates/blob/9115ef25530497999073cdf0f5497a4d142e3256/templates/xcode.pkr.hcl#L235 |
| 100 | + working-directory: sentry-react-native/packages/core/RNSentryCocoaTester |
| 101 | + run: | |
| 102 | + rbenv global 3.3.10 |
| 103 | +
|
| 104 | + - name: Install cocoapods |
| 105 | + working-directory: sentry-react-native/packages/core/RNSentryCocoaTester |
| 106 | + run: gem install cocoapods |
| 107 | + |
90 | 108 | - name: Install App Pods |
91 | 109 | working-directory: sentry-react-native/packages/core/RNSentryCocoaTester |
92 | 110 | run: pod install |
|
0 commit comments