From 862acf5307a6aa5da2527d84d676dda23502ab6b Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Fri, 23 Oct 2026 11:18:12 -0700 Subject: [PATCH 1/3] ci(native): build and test the native Swift packages on macOS Adds a Native Swift workflow that builds and tests every Swift package under packages/native on a macOS runner: `swift test` for packages that support macOS, and an iOS Simulator build (or test, for an iOS-only package). Until now the generated Swift binding was only typechecked by hand. --- .github/workflows/native-swift.yml | 76 ++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/native-swift.yml diff --git a/.github/workflows/native-swift.yml b/.github/workflows/native-swift.yml new file mode 100644 index 0000000000000..45af39f46febe --- /dev/null +++ b/.github/workflows/native-swift.yml @@ -0,0 +1,76 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. + +# Native Swift: builds and tests every Swift package in @astryxdesign/native +# (AST-082) on macOS, for macOS and the iOS Simulator. The package is +# experimental and canary-only. Its contract drift check runs with the rest of +# the package in the Node tests; this lane is where its Swift compiles and its +# Swift tests run. +name: Native Swift + +on: + pull_request: + branches: ['main'] + paths: + - 'packages/native/**/*.swift' + - 'packages/native/**/Package.swift' + - '.github/workflows/native-swift.yml' + push: + branches: ['main'] + paths: + - 'packages/native/**/*.swift' + - 'packages/native/**/Package.swift' + - '.github/workflows/native-swift.yml' + +permissions: {} + +concurrency: + group: 'native-swift-${{ github.head_ref || github.run_id }}' + cancel-in-progress: true + +jobs: + swift: + runs-on: macos-15 + timeout-minutes: 30 + permissions: + contents: read + steps: + - uses: actions/checkout@v7 + + - name: Show the toolchain + run: | + xcodebuild -version + swift --version + + # One package per directory that holds a Package.swift, such as apple/ + # (generated contracts) and each versioned swift-ios-/. A package + # that supports macOS runs its tests there; every package builds for + # the iOS Simulator, and an iOS-only package runs its tests there. + - name: Build and test each package + run: | + set -euo pipefail + packages=$(find packages/native -name Package.swift -not -path '*/.build/*' -not -path '*/node_modules/*' -exec dirname {} \; | sort) + if [ -z "$packages" ]; then + echo 'No Swift package found under packages/native.' + exit 1 + fi + for package in $packages; do + echo "::group::$package" + ( + cd "$package" + swift package dump-package > "$RUNNER_TEMP/package.json" + read -r macos tests < <(python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); print(any(p["platformName"]=="macos" for p in d.get("platforms",[])) or not d.get("platforms"), any(t["type"]=="test" for t in d["targets"]))' "$RUNNER_TEMP/package.json") + # Xcode names the whole-package scheme -Package when a + # package has several products, and after its product otherwise. + xcodebuild -list -json > "$RUNNER_TEMP/schemes.json" + scheme=$(python3 -c 'import json,sys; s=json.load(open(sys.argv[1]))["workspace"]["schemes"]; print(next((x for x in s if x.endswith("-Package")), s[0]))' "$RUNNER_TEMP/schemes.json") + if [ "$macos" = True ]; then + swift test + xcodebuild build -scheme "$scheme" -destination 'generic/platform=iOS Simulator' -quiet + elif [ "$tests" = True ]; then + xcodebuild test -scheme "$scheme" -destination 'platform=iOS Simulator,name=iPhone 16' -quiet + else + xcodebuild build -scheme "$scheme" -destination 'generic/platform=iOS Simulator' -quiet + fi + ) + echo '::endgroup::' + done From 94271f92c4e6c1832d4720933a4bafa7d2a5930e Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Fri, 23 Oct 2026 11:55:12 -0700 Subject: [PATCH 2/3] ci(native): run native Swift from the broad CI lane and join it to test Moves the Swift build out of its own path-filtered workflow into ci.yml as test-native-swift, joined by test (AST-030 FR11). The job does its macOS work only when a pull request changes Swift under packages/native or ci.yml, and builds a package without a test target instead of running swift test. --- .github/scripts/ci-test-join.mjs | 1 + .github/scripts/ci-test-join.test.mjs | 3 + .github/scripts/ci-tooling-routing.test.mjs | 2 + .github/workflows/ci.yml | 95 ++++++++++++++++++++- .github/workflows/native-swift.yml | 76 ----------------- 5 files changed, 100 insertions(+), 77 deletions(-) delete mode 100644 .github/workflows/native-swift.yml diff --git a/.github/scripts/ci-test-join.mjs b/.github/scripts/ci-test-join.mjs index ca2357716e845..c3cdf35fc16d0 100644 --- a/.github/scripts/ci-test-join.mjs +++ b/.github/scripts/ci-test-join.mjs @@ -14,6 +14,7 @@ const requiredSuccess = [ ['test-ui', process.env.TEST_UI_RESULT], ['test-node', process.env.TEST_NODE_RESULT], ['registry-contract', process.env.REGISTRY_CONTRACT_RESULT], + ['test-native-swift', process.env.TEST_NATIVE_SWIFT_RESULT], ]; function fail(message) { diff --git a/.github/scripts/ci-test-join.test.mjs b/.github/scripts/ci-test-join.test.mjs index f06eb2693dcca..3344ba3d100a5 100644 --- a/.github/scripts/ci-test-join.test.mjs +++ b/.github/scripts/ci-test-join.test.mjs @@ -17,6 +17,7 @@ const broad = { TEST_NODE_RESULT: 'success', TEST_BUILD_RESULT: 'success', REGISTRY_CONTRACT_RESULT: 'success', + TEST_NATIVE_SWIFT_RESULT: 'success', }; function run(overrides = {}) { @@ -43,6 +44,8 @@ describe('pull-request test join', () => { ['TEST_NODE_RESULT', 'cancelled'], ['TEST_BUILD_RESULT', 'skipped'], ['REGISTRY_CONTRACT_RESULT', 'failure'], + ['TEST_NATIVE_SWIFT_RESULT', 'failure'], + ['TEST_NATIVE_SWIFT_RESULT', 'skipped'], ]) { expect(run({[name]: value}), name).toMatchObject({status: 1}); } diff --git a/.github/scripts/ci-tooling-routing.test.mjs b/.github/scripts/ci-tooling-routing.test.mjs index 12bfc170050d5..6205b00fba9cb 100644 --- a/.github/scripts/ci-tooling-routing.test.mjs +++ b/.github/scripts/ci-tooling-routing.test.mjs @@ -175,6 +175,7 @@ describe('Node-tooling CI routing', () => { 'test-node', 'test-build', 'registry-contract', + 'test-native-swift', ]); expect(ci.jobs.build.needs).toEqual([ 'build-storybook', @@ -193,6 +194,7 @@ describe('Node-tooling CI routing', () => { TEST_NODE_RESULT: '${{ needs.test-node.result }}', TEST_BUILD_RESULT: '${{ needs.test-build.result }}', REGISTRY_CONTRACT_RESULT: '${{ needs.registry-contract.result }}', + TEST_NATIVE_SWIFT_RESULT: '${{ needs.test-native-swift.result }}', }); const buildJoin = step( ci.jobs.build, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1002b734fc1c3..f4a5d2bb7b0fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -728,6 +728,90 @@ jobs: if: matrix.shard == 1 && needs.check-scope.outputs.docsite_only != 'true' && needs.check-scope.outputs.spec_only != 'true' && needs.check-scope.outputs.tooling_only != 'true' run: node .github/scripts/theme-family-cascade.js + # Native Swift: the Swift packages of the experimental, canary-only + # @astryxdesign/native (AST-082) build and test only on macOS. They are + # coverage inside the shared surface (AST-030 FR11), so `test` joins this + # job. It does the macOS work only when a pull request changes Swift under + # packages/native or this workflow; a merge group always runs it. + test-native-swift: + needs: [check-scope] + if: ${{ github.event_name != 'workflow_dispatch' && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }} + runs-on: macos-15 + timeout-minutes: 30 + permissions: + contents: read + steps: + - name: Require successful scope classification + if: needs.check-scope.result != 'success' + run: | + echo "Change scope could not be classified; refusing to skip required work." + exit 1 + + - uses: actions/checkout@v7 + if: needs.check-scope.outputs.docsite_only != 'true' + with: + fetch-depth: 0 + + - name: Decide whether native Swift changed + id: swift-scope + if: needs.check-scope.outputs.docsite_only != 'true' + env: + EVENT_NAME: ${{ github.event_name }} + BASE_SHA: ${{ github.event.pull_request.base.sha }} + run: | + set -euo pipefail + if [ "$EVENT_NAME" != pull_request ]; then + echo 'changed=true' >> "$GITHUB_OUTPUT" + exit 0 + fi + changed=$(git diff --name-only "$(git merge-base "$BASE_SHA" HEAD)" HEAD \ + | grep -E '^packages/native/.*(\.swift|Package\.swift)$|^\.github/workflows/ci\.yml$' || true) + if [ -n "$changed" ]; then + echo 'changed=true' >> "$GITHUB_OUTPUT" + else + echo 'No native Swift change; nothing to build.' + echo 'changed=false' >> "$GITHUB_OUTPUT" + fi + + # One package per directory that holds a Package.swift, such as apple/ + # (generated contracts) and each versioned swift-ios-/. A package that + # supports macOS builds and tests there; every package builds for the iOS + # Simulator, and an iOS-only package runs its tests there. A package + # without a test target only builds. + - name: Build and test each native Swift package + if: steps.swift-scope.outputs.changed == 'true' + run: | + set -euo pipefail + xcodebuild -version + packages=$(find packages/native -name Package.swift -not -path '*/.build/*' -not -path '*/node_modules/*' -exec dirname {} \; | sort) + if [ -z "$packages" ]; then + echo 'No Swift package found under packages/native.' + exit 1 + fi + for package in $packages; do + echo "::group::$package" + ( + cd "$package" + swift package dump-package > "$RUNNER_TEMP/package.json" + read -r macos tests < <(python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); print(any(p["platformName"]=="macos" for p in d.get("platforms",[])) or not d.get("platforms"), any(t["type"]=="test" for t in d["targets"]))' "$RUNNER_TEMP/package.json") + # Xcode names the whole-package scheme -Package when a + # package has several products, and after its product otherwise. + xcodebuild -list -json > "$RUNNER_TEMP/schemes.json" + scheme=$(python3 -c 'import json,sys; s=json.load(open(sys.argv[1]))["workspace"]["schemes"]; print(next((x for x in s if x.endswith("-Package")), s[0]))' "$RUNNER_TEMP/schemes.json") + if [ "$macos" = True ] && [ "$tests" = True ]; then + swift test + elif [ "$macos" = True ]; then + swift build + fi + if [ "$macos" != True ] && [ "$tests" = True ]; then + xcodebuild test -scheme "$scheme" -destination 'platform=iOS Simulator,name=iPhone 16' -quiet + else + xcodebuild build -scheme "$scheme" -destination 'generic/platform=iOS Simulator' -quiet + fi + ) + echo '::endgroup::' + done + # Public registry contract. Generation proves schema, dependency, route-lock, # alias, and release-gating invariants; the final step drives every canonical # item through the exact pinned ShadCN client and compiles every written source. @@ -804,7 +888,15 @@ jobs: # public registry contract always report or explicitly skip, so this join # projects their combined result without creating another surface lane. test: - needs: [check-scope, test-ui, test-node, test-build, registry-contract] + needs: + [ + check-scope, + test-ui, + test-node, + test-build, + registry-contract, + test-native-swift, + ] if: ${{ github.event_name != 'workflow_dispatch' && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }} runs-on: ubuntu-slim permissions: @@ -822,6 +914,7 @@ jobs: TEST_NODE_RESULT: ${{ needs.test-node.result }} TEST_BUILD_RESULT: ${{ needs.test-build.result }} REGISTRY_CONTRACT_RESULT: ${{ needs.registry-contract.result }} + TEST_NATIVE_SWIFT_RESULT: ${{ needs.test-native-swift.result }} run: node .github/scripts/ci-test-join.mjs # Build storybook + typecheck + analyze components (parallel with test and diff --git a/.github/workflows/native-swift.yml b/.github/workflows/native-swift.yml deleted file mode 100644 index 45af39f46febe..0000000000000 --- a/.github/workflows/native-swift.yml +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. - -# Native Swift: builds and tests every Swift package in @astryxdesign/native -# (AST-082) on macOS, for macOS and the iOS Simulator. The package is -# experimental and canary-only. Its contract drift check runs with the rest of -# the package in the Node tests; this lane is where its Swift compiles and its -# Swift tests run. -name: Native Swift - -on: - pull_request: - branches: ['main'] - paths: - - 'packages/native/**/*.swift' - - 'packages/native/**/Package.swift' - - '.github/workflows/native-swift.yml' - push: - branches: ['main'] - paths: - - 'packages/native/**/*.swift' - - 'packages/native/**/Package.swift' - - '.github/workflows/native-swift.yml' - -permissions: {} - -concurrency: - group: 'native-swift-${{ github.head_ref || github.run_id }}' - cancel-in-progress: true - -jobs: - swift: - runs-on: macos-15 - timeout-minutes: 30 - permissions: - contents: read - steps: - - uses: actions/checkout@v7 - - - name: Show the toolchain - run: | - xcodebuild -version - swift --version - - # One package per directory that holds a Package.swift, such as apple/ - # (generated contracts) and each versioned swift-ios-/. A package - # that supports macOS runs its tests there; every package builds for - # the iOS Simulator, and an iOS-only package runs its tests there. - - name: Build and test each package - run: | - set -euo pipefail - packages=$(find packages/native -name Package.swift -not -path '*/.build/*' -not -path '*/node_modules/*' -exec dirname {} \; | sort) - if [ -z "$packages" ]; then - echo 'No Swift package found under packages/native.' - exit 1 - fi - for package in $packages; do - echo "::group::$package" - ( - cd "$package" - swift package dump-package > "$RUNNER_TEMP/package.json" - read -r macos tests < <(python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); print(any(p["platformName"]=="macos" for p in d.get("platforms",[])) or not d.get("platforms"), any(t["type"]=="test" for t in d["targets"]))' "$RUNNER_TEMP/package.json") - # Xcode names the whole-package scheme -Package when a - # package has several products, and after its product otherwise. - xcodebuild -list -json > "$RUNNER_TEMP/schemes.json" - scheme=$(python3 -c 'import json,sys; s=json.load(open(sys.argv[1]))["workspace"]["schemes"]; print(next((x for x in s if x.endswith("-Package")), s[0]))' "$RUNNER_TEMP/schemes.json") - if [ "$macos" = True ]; then - swift test - xcodebuild build -scheme "$scheme" -destination 'generic/platform=iOS Simulator' -quiet - elif [ "$tests" = True ]; then - xcodebuild test -scheme "$scheme" -destination 'platform=iOS Simulator,name=iPhone 16' -quiet - else - xcodebuild build -scheme "$scheme" -destination 'generic/platform=iOS Simulator' -quiet - fi - ) - echo '::endgroup::' - done From a6c25e89fe12e2f9d1c21802d1491283aa6ad30b Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Fri, 23 Oct 2026 12:30:42 -0700 Subject: [PATCH 3/3] ci(native): decide Swift scope on Linux; use macOS only when Swift changed A native-swift-scope job on ubuntu-slim decides, with pr-scope-touches.sh loaded from the base, whether the change touches Swift under packages/native. test-native-swift asks for macos-15 only then, and otherwise passes on Linux, so other pull requests no longer wait for a macOS runner. Docsite-only and tooling-only changes skip the Swift work; an undecidable scope runs it. --- .github/scripts/ci-native-swift.test.mjs | 77 ++++++++++++++++++++++++ .github/workflows/ci.yml | 75 ++++++++++++++++------- 2 files changed, 129 insertions(+), 23 deletions(-) create mode 100644 .github/scripts/ci-native-swift.test.mjs diff --git a/.github/scripts/ci-native-swift.test.mjs b/.github/scripts/ci-native-swift.test.mjs new file mode 100644 index 0000000000000..87e815417f96e --- /dev/null +++ b/.github/scripts/ci-native-swift.test.mjs @@ -0,0 +1,77 @@ +// Copyright (c) Meta Platforms, Inc. and affiliates. + +/** + * @file Routing contract for the native Swift coverage in the broad CI lane. + * + * The Swift packages of @astryxdesign/native build only on macOS. They join + * the `test` owner (AST-030 FR11), but a macOS runner is requested only when + * a Linux job finds a Swift change under packages/native, so no other pull + * request waits for one. + */ + +import fs from 'node:fs'; +import path from 'node:path'; + +import {describe, expect, it} from 'vitest'; +import yaml from 'yaml'; + +const root = path.resolve(import.meta.dirname, '../..'); +const ci = yaml.parse( + fs.readFileSync(path.join(root, '.github/workflows/ci.yml'), 'utf8'), +); +const scope = ci.jobs['native-swift-scope']; +const swift = ci.jobs['test-native-swift']; +const step = (job, name) => + job.steps.find(candidate => candidate.name === name); + +describe('native Swift routing', () => { + it('is joined by test', () => { + expect(ci.jobs.test.needs).toContain('test-native-swift'); + expect( + step(ci.jobs.test, 'Require expected test-owner outcomes').env, + ).toMatchObject({ + TEST_NATIVE_SWIFT_RESULT: '${{ needs.test-native-swift.result }}', + }); + }); + + it('decides scope on Linux and asks for macOS only when Swift changed', () => { + expect(scope['runs-on']).toBe('ubuntu-slim'); + expect(swift.needs).toEqual(['check-scope', 'native-swift-scope']); + expect(swift['runs-on']).toBe( + "${{ needs.native-swift-scope.outputs.applies == 'true' && 'macos-15' || 'ubuntu-slim' }}", + ); + for (const candidate of swift.steps) { + if (candidate.uses || candidate.name?.startsWith('Build and test')) { + expect(candidate.if, candidate.name ?? candidate.uses).toBe( + "needs.native-swift-scope.outputs.applies == 'true'", + ); + } + } + }); + + it('fails closed when the scope cannot be decided', () => { + expect(step(scope, 'Require successful scope classification').if).toBe( + "needs.check-scope.result != 'success'", + ); + expect(step(swift, 'Require a decided Swift scope').if).toBe( + "needs.native-swift-scope.result != 'success'", + ); + const decide = step(scope, 'Decide whether native Swift changed').run; + expect(decide).toContain( + 'git show "$BASE_SHA:.github/scripts/pr-scope-touches.sh"', + ); + // Only "out of scope" (exit 1) skips; unknown (2) runs the Swift work. + expect(decide).toContain('if [ "$scope" = 1 ]; then'); + }); + + it('skips the Swift work on docsite-only and tooling-only changes', () => { + const decide = step(scope, 'Decide whether native Swift changed'); + expect(decide.env).toMatchObject({ + DOCSITE_ONLY: '${{ needs.check-scope.outputs.docsite_only }}', + TOOLING_ONLY: '${{ needs.check-scope.outputs.tooling_only }}', + }); + expect(decide.run).toContain( + 'if [ "$DOCSITE_ONLY" = true ] || [ "$TOOLING_ONLY" = true ]; then', + ); + }); +}); diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4a5d2bb7b0fe..97ae84963ff8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -730,16 +730,18 @@ jobs: # Native Swift: the Swift packages of the experimental, canary-only # @astryxdesign/native (AST-082) build and test only on macOS. They are - # coverage inside the shared surface (AST-030 FR11), so `test` joins this - # job. It does the macOS work only when a pull request changes Swift under - # packages/native or this workflow; a merge group always runs it. - test-native-swift: + # coverage inside the shared surface (AST-030 FR11), so `test` joins + # test-native-swift. A Linux job first decides whether the change touches + # Swift under packages/native; only then does test-native-swift take a macOS + # runner, and otherwise it passes on Linux without work. + native-swift-scope: needs: [check-scope] if: ${{ github.event_name != 'workflow_dispatch' && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }} - runs-on: macos-15 - timeout-minutes: 30 + runs-on: ubuntu-slim permissions: contents: read + outputs: + applies: ${{ steps.scope.outputs.applies }} steps: - name: Require successful scope classification if: needs.check-scope.result != 'success' @@ -748,38 +750,65 @@ jobs: exit 1 - uses: actions/checkout@v7 - if: needs.check-scope.outputs.docsite_only != 'true' - with: - fetch-depth: 0 + if: needs.check-scope.outputs.docsite_only != 'true' && needs.check-scope.outputs.tooling_only != 'true' + # The helper comes from the base, since an older head lacks it. Exit 1 + # means out of scope; 0 in scope; 2 unknown, so the Swift work runs. - name: Decide whether native Swift changed - id: swift-scope - if: needs.check-scope.outputs.docsite_only != 'true' + id: scope env: - EVENT_NAME: ${{ github.event_name }} - BASE_SHA: ${{ github.event.pull_request.base.sha }} + DOCSITE_ONLY: ${{ needs.check-scope.outputs.docsite_only }} + TOOLING_ONLY: ${{ needs.check-scope.outputs.tooling_only }} + BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }} run: | - set -euo pipefail - if [ "$EVENT_NAME" != pull_request ]; then - echo 'changed=true' >> "$GITHUB_OUTPUT" + if [ "$DOCSITE_ONLY" = true ] || [ "$TOOLING_ONLY" = true ]; then + echo 'Specialized lane; no native Swift work.' + echo 'applies=false' >> "$GITHUB_OUTPUT" exit 0 fi - changed=$(git diff --name-only "$(git merge-base "$BASE_SHA" HEAD)" HEAD \ - | grep -E '^packages/native/.*(\.swift|Package\.swift)$|^\.github/workflows/ci\.yml$' || true) - if [ -n "$changed" ]; then - echo 'changed=true' >> "$GITHUB_OUTPUT" - else + scope=2 + helper="$(mktemp)" + if [ -n "$BASE_SHA" ] \ + && git fetch --quiet --no-tags --depth=1 origin "$BASE_SHA" \ + && git show "$BASE_SHA:.github/scripts/pr-scope-touches.sh" > "$helper"; then + scope=0 + bash "$helper" "$BASE_SHA" '^packages/native/.*(\.swift|/Package\.swift)$' || scope=$? + fi + if [ "$scope" = 1 ]; then echo 'No native Swift change; nothing to build.' - echo 'changed=false' >> "$GITHUB_OUTPUT" + echo 'applies=false' >> "$GITHUB_OUTPUT" + else + echo 'applies=true' >> "$GITHUB_OUTPUT" fi + test-native-swift: + needs: [check-scope, native-swift-scope] + if: ${{ github.event_name != 'workflow_dispatch' && always() && !cancelled() && needs.check-scope.outputs.spec_only != 'true' }} + runs-on: ${{ needs.native-swift-scope.outputs.applies == 'true' && 'macos-15' || 'ubuntu-slim' }} + timeout-minutes: 30 + permissions: + contents: read + steps: + - name: Require a decided Swift scope + if: needs.native-swift-scope.result != 'success' + run: | + echo "Native Swift scope could not be decided; refusing to skip required work." + exit 1 + + - name: Skip Swift work outside its scope + if: needs.native-swift-scope.outputs.applies != 'true' + run: echo "No native Swift change in this scope." + + - uses: actions/checkout@v7 + if: needs.native-swift-scope.outputs.applies == 'true' + # One package per directory that holds a Package.swift, such as apple/ # (generated contracts) and each versioned swift-ios-/. A package that # supports macOS builds and tests there; every package builds for the iOS # Simulator, and an iOS-only package runs its tests there. A package # without a test target only builds. - name: Build and test each native Swift package - if: steps.swift-scope.outputs.changed == 'true' + if: needs.native-swift-scope.outputs.applies == 'true' run: | set -euo pipefail xcodebuild -version