-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add Swift 6 language mode workflow
# Motivation We want to check how our packages perform in Swift 6 language mode. # Modification This PR adds a new reusable workflow that sets the tools version to Swift 6 and then builds with warnings as errors enabled. Additionally, I did a bit of cleanup for the workflow names to hopefully make them look nice in every GH Action UI. # Result We now get a feeling for our Swift 6 language mode compatibility.
- Loading branch information
1 parent
28f9cae
commit dc9ebaa
Showing
4 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Swift 6 language mode | ||
|
||
on: | ||
workflow_call: | ||
|
||
## We are cancelling previously triggered workflow runs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-swift-6-language-mode | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
swift-6-language-mode: | ||
name: Swift 6 language mode | ||
runs-on: ubuntu-latest | ||
container: | ||
image: swiftlang/swift:nightly-6.0-jammy | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set the language mode | ||
run: swift package tools-version --set 6.0 | ||
- name: Build with Swift 6 language mode | ||
run: swift build -Xswiftc -warnings-as-errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters