Skip to content

Release to Staging v2.9.28 - 2026-08-07 #175

Release to Staging v2.9.28 - 2026-08-07

Release to Staging v2.9.28 - 2026-08-07 #175

Workflow file for this run

name: Swift SDK CI
permissions:
contents: read
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
paths:
- "packages/self-sdk-swift/**"
- ".github/workflows/swift-sdk-ci.yml"
- ".github/actions/**"
- ".github/CI_FORCE_RUN"
push:
branches: [dev, staging, main]
paths:
- "packages/self-sdk-swift/**"
- ".github/workflows/swift-sdk-ci.yml"
- ".github/actions/**"
- ".github/CI_FORCE_RUN"
jobs:
build:
if: |
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) &&
(github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && contains(fromJSON('["refs/heads/staging","refs/heads/main"]'), github.ref)) ||
(github.event_name == 'pull_request' && contains(fromJSON('["staging","main"]'), github.base_ref)) ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'test-ios')))
runs-on: namespace-profile-apple-silicon-6cpu
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Generate token for private dependencies
uses: ./.github/actions/generate-github-token
id: github-token
with:
app-id: ${{ vars.GH_WORKFLOWS_CROSS_ACCESS_ID }}
private-key: ${{ secrets.GH_WORKFLOWS_CROSS_ACCESS_KEY }}
configure-netrc: "true"
- name: Configure git for HTTPS dependency fetch
run: git config --global url."https://github.com/".insteadOf "git@github.com:"
- name: Resolve Swift package dependencies
working-directory: packages/self-sdk-swift
run: swift package resolve
- name: Build Swift package for iOS Simulator
working-directory: packages/self-sdk-swift
run: |
xcodebuild build \
-scheme SelfSdkSwift \
-sdk iphonesimulator \
-destination 'generic/platform=iOS Simulator' \
ONLY_ACTIVE_ARCH=NO