Skip to content

Bug 2053775 - CI: Run Swift tests on GitHub Actions - #3637

Open
badboy wants to merge 2 commits into
ci-run-kotlin-tests-on-github-/yqssynrmyvykfrom
ci-build-test-ios-sample-app/myyuqmpqlzpq
Open

badboy wants to merge 2 commits into
ci-run-kotlin-tests-on-github-/yqssynrmyvykfrom
ci-build-test-ios-sample-app/myyuqmpqlzpq

Conversation

@badboy

@badboy badboy commented Sep 11, 2026

Copy link
Copy Markdown
Member

No description provided.

@badboy
badboy added this pull request to stack #3628 September 11, 2026 10:35
@badboy
badboy requested a review from a team as a code owner September 11, 2026 10:35
@badboy
badboy requested review from chutten and removed request for a team September 11, 2026 10:35
@badboy badboy added the CI label Sep 11, 2026
test-swift:
runs-on: macos-latest
needs: [decide-runs]
if: needs.decide-runs.outputs.rust-changed == 'true' || needs.decide-runs.outputs.swift-changed == 'true'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean an end to /run-ios?

Also, running all swift tests on all rust changes? Is that a change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Yes! We run iOS builds by default now
  2. Yes! We did that whole /run-ios part and not running by default because of cost. macOS time was costly on CircleCI and we were asked to reduce it. Until someone tells me that about GitHub Actions we will just default to running it.

Comment on lines +360 to +376
- &swift-build-environment
name: Setup build environment
run: |
set -x
rustup target add aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios

# For some reason everything works fine if we use the host clang,
# not the Xcode-bundled clang.
echo '[target.aarch64-apple-darwin]' >> ~/.cargo/config.toml
echo 'linker = "/usr/bin/cc"' >> ~/.cargo/config.toml

# List available devices -- allows us to see what's there
DEVICES=$(xcrun xctrace list devices 2>&1)
echo "$DEVICES"
# Pick a device and start it
UUID=$(echo "$DEVICES" | grep --max-count=1 'iPhone 17 Simulator (26' | awk -F'[()]' '{print $4}')
xcrun simctl boot "$UUID"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can rubber-stamp this, but if you want a real review you may need to tap someone who understands mac/ios/swift.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's copied from what we do on CircleCI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants