diff --git a/.github/actions/ruby-cache/action.yml b/.github/actions/ruby-cache/action.yml index 0636077792..c3639b05cb 100644 --- a/.github/actions/ruby-cache/action.yml +++ b/.github/actions/ruby-cache/action.yml @@ -1,5 +1,10 @@ name: 'Ruby Cache' description: 'Cache Ruby dependencies' +inputs: + ruby-version: + description: 'The Ruby minor version; the newest patch of it is used' + required: false + default: '3.3' runs: using: "composite" steps: @@ -8,7 +13,24 @@ runs: - shell: bash run: echo "GEM_SPEC_CACHE=${{ runner.temp }}/gem-specs" >> "$GITHUB_ENV" - uses: ruby/setup-ruby@v1 + if: runner.os != 'macOS' || runner.environment != 'self-hosted' with: - ruby-version: 3.3 + ruby-version: ${{ inputs.ruby-version }} bundler-cache: true working-directory: examples/SampleApp + # setup-ruby's Ruby is built against a newer OpenSSL than the scaleway-macos image's Homebrew + # one and segfaults inside it. The image's own Ruby (mise) is built against the image's + # OpenSSL. The runners are fresh VMs, so there is no gem folder to cache. + - name: Use the image's Ruby + if: runner.os == 'macOS' && runner.environment == 'self-hosted' + shell: bash + working-directory: examples/SampleApp + env: + RUBY_VERSION: ${{ inputs.ruby-version }} + run: | + runtime=$(mise where "ruby@$RUBY_VERSION") + echo "$runtime/bin" >> "$GITHUB_PATH" + export PATH="$runtime/bin:$PATH" + bundle config set --local path vendor/bundle + bundle config set --local deployment true + bundle install --jobs 4 --retry 3 diff --git a/.github/workflows/build-ios-spm.yml b/.github/workflows/build-ios-spm.yml index f7d7d0a0c3..b154366e1e 100644 --- a/.github/workflows/build-ios-spm.yml +++ b/.github/workflows/build-ios-spm.yml @@ -28,7 +28,8 @@ permissions: jobs: build_ios_spm: name: Build SampleApp iOS (Swift Package Manager) - runs-on: { group: scaleway-macos } + # Makes no authenticated GitHub calls, so it needs no allow-listed IP. + runs-on: macos-26 env: STREAM_CHAT_SPM_ONLY: '1' # `pod deintegrate`, run by `react-native spm add --deintegrate`, needs a UTF-8 locale. diff --git a/.github/workflows/e2e-test-cron.yml b/.github/workflows/e2e-test-cron.yml index 3cae59cb48..3e5a806010 100644 --- a/.github/workflows/e2e-test-cron.yml +++ b/.github/workflows/e2e-test-cron.yml @@ -45,7 +45,9 @@ jobs: ios: name: Test iOS ${{ matrix.ios }} if: (github.event_name == 'schedule' || inputs.ios) && (inputs.mock_server_branch || 'main') == 'main' - runs-on: { group: scaleway-macos } + # GitHub's Xcode 27 image, since the scaleway-macos image has none. Needs no allow-listed IP: + # its one authenticated GitHub call, Allure's run-details lookup, is unused for cron launches. + runs-on: xcode-27 timeout-minutes: 360 strategy: fail-fast: false diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index d46c72f325..d75132dee3 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -74,7 +74,9 @@ jobs: ios: needs: check if: needs.check.outputs.required == 'true' && github.event_name == 'workflow_dispatch' && inputs.ios - runs-on: { group: scaleway-macos } + # Needs no allow-listed IP: its one authenticated GitHub call, Allure's run-details lookup, + # only names the launch, and the launch step may fail. + runs-on: macos-26 timeout-minutes: 60 env: DETOX_IOS_DEVICE: "iPhone 17 Pro" diff --git a/.github/workflows/sample-distribution.yml b/.github/workflows/sample-distribution.yml index 1320739a87..2fd7c05349 100644 --- a/.github/workflows/sample-distribution.yml +++ b/.github/workflows/sample-distribution.yml @@ -29,6 +29,7 @@ env: jobs: build_and_deploy_ios_testflight_qa: name: Build SampleApp iOS and Deploy-${{ github.ref_name == 'develop' || github.ref_name == vars.RC_BRANCH }} + # The allow-listed IP: the certificates token and the fastlane match clone call GitHub. runs-on: { group: scaleway-macos } strategy: matrix: @@ -53,7 +54,9 @@ jobs: cache-dependency-path: 'yarn.lock' - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '27.2' # Update as needed + # The newest Xcode on the scaleway-macos image. App Store Connect requires the iOS 27 SDK + # from April 2027 (ITMS-90725), so the image needs Xcode 27 before then. + xcode-version: '26.3' - uses: ./.github/actions/ruby-cache - name: Install && Build - SDK and Sample App uses: ./.github/actions/install-and-build-sdk