From 45a42b0393d2eec971e0a8dbf021ed697d9d24bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:31:19 +0000 Subject: [PATCH] Revert swift.yml change: swift/ builds C++, not Swift code --- .bazelrc | 3 +-- .github/workflows/swift.yml | 10 ++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.bazelrc b/.bazelrc index 13919796e5c..55a9b72c3a1 100644 --- a/.bazelrc +++ b/.bazelrc @@ -14,8 +14,7 @@ build --repo_env=CC=clang --repo_env=CXX=clang++ # macOS Xcode-coupled flags, scoped to Swift builds only so that non-Swift # builds (C/C++/Rust/...) work with just the Command Line Tools. Enable -# with `--config=swift_macos` (see `unified/swift-syntax-rs/README.md`; CI -# for the `swift/` package passes it in `.github/workflows/swift.yml`). +# with `--config=swift_macos` (see `unified/swift-syntax-rs/README.md`). # # - `--xcode_version_config` selects `apple_support`'s xcode_config, whose # version strings match the ones `rules_swift`'s `system_sdk` selects are diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index ad2cb0d7fc9..4a5613f988e 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -44,18 +44,12 @@ jobs: sudo apt-get install -y uuid-dev zlib1g-dev - name: Build Swift extractor shell: bash - env: - # On macOS, opt into the Xcode-coupled toolchain wiring only for - # Swift builds. Empty on Linux (hermetic swift.org toolchain). - BAZEL_SWIFT_CONFIG: ${{ runner.os == 'macOS' && '--config=swift_macos' || '' }} run: | - bazel run $BAZEL_SWIFT_CONFIG :install + bazel run :install - name: Run Swift tests shell: bash - env: - BAZEL_SWIFT_CONFIG: ${{ runner.os == 'macOS' && '--config=swift_macos' || '' }} run: | - bazel test $BAZEL_SWIFT_CONFIG ... --test_tag_filters=-override --test_output=errors + bazel test ... --test_tag_filters=-override --test_output=errors clang-format: runs-on: ubuntu-latest steps: