Skip to content

Commit 88f1e02

Browse files
authored
Add Swift Source Compatibility CI workflow (#191)
1 parent cf1451a commit 88f1e02

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Swift Source Compatibility
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
swift-source-compat-suite:
11+
name: Test Swift ${{ matrix.container }} For Source Compatibility Suite
12+
runs-on: ubuntu-latest
13+
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
14+
continue-on-error: ${{ contains(matrix.container, 'nightly') }}
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
container:
20+
- swift:6.1
21+
- swift:6.2
22+
- swiftlang/swift:nightly-6.3-noble
23+
24+
container: ${{ matrix.container }}
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Test Swift 6.x For Source Compatibility
31+
run: swift build --disable-sandbox --verbose --configuration release

Package.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ let swiftSettings: [SwiftSetting] = [
6262

6363
// Enhanced compiler checking
6464
.unsafeFlags([
65-
// Enable concurrency warnings
66-
"-warn-concurrency",
67-
// Enable actor data race checks
68-
"-enable-actor-data-race-checks",
69-
// Complete strict concurrency checking
70-
"-strict-concurrency=complete",
71-
// Enable testing support
72-
"-enable-testing",
7365
// Warn about functions with >100 lines
7466
"-Xfrontend", "-warn-long-function-bodies=100",
7567
// Warn about slow type checking expressions

0 commit comments

Comments
 (0)