Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/actions/ruby-cache/action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
3 changes: 2 additions & 1 deletion .github/workflows/build-ios-spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/e2e-test-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sample-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down