From 58593a4b2b49dc4b44e6225d1c3939c1fdc7f05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20M=C3=B6sch?= Date: Sat, 27 Jun 2026 10:14:56 +0200 Subject: [PATCH] Verify that executable builds with Swift 6 --- .github/workflows/build.yml | 11 +++++++++++ CHANGELOG.md | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6819694467..58f9ae4bc9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,17 @@ jobs: - name: Verify SourceKit dynamic loading behavior run: bash tools/verify-sourcekit-loading.sh bazel-bin/swiftlint . + bazel_macos: + name: Bazel, macOS 14, Xcode 16.2 # default + runs-on: macos-14 + steps: + - *checkout-step + - name: Build SwiftLint with Bazel + run: make --debug bazel_release + env: + DEVELOPER_DIR: /Applications/Xcode_16.2.app + + plugins_linux: name: SPM plugins, Linux, Swift ${{ matrix.version }} runs-on: ubuntu-24.04 diff --git a/CHANGELOG.md b/CHANGELOG.md index a12c3a11a0..f80760840b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ ### Breaking -* SwiftLint now requires a Swift 6.1 or higher compiler to build. The +* SwiftLint now requires a Swift 6.1 or higher for development (to run tests). The + executable can still be built with a Swift 6 compiler. The [Swift Package Manager plugins](https://github.com/SimplyDanny/SwiftLintPlugins) continue to work with all versions down to Swift 5.9. [SimplyDanny](https://github.com/SimplyDanny)