Skip to content

Commit 3e5dcd2

Browse files
committed
Hello, Swift Configuration
0 parents  commit 3e5dcd2

File tree

198 files changed

+41352
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+41352
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
max_line_length = 120

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Motivation
2+
3+
_[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]_
4+
5+
### Modifications
6+
7+
_[Describe the modifications you've made.]_
8+
9+
### Result
10+
11+
_[After your change, what will change.]_
12+
13+
### Test Plan
14+
15+
_[Describe the steps you took, or will take, to qualify the change - such as adjusting tests and manual testing.]_

.github/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
changelog:
2+
categories:
3+
- title: SemVer Major
4+
labels:
5+
- ⚠️ semver/major
6+
- title: SemVer Minor
7+
labels:
8+
- 🆕 semver/minor
9+
- title: SemVer Patch
10+
labels:
11+
- 🔨 semver/patch
12+
- title: Other Changes
13+
labels:
14+
- semver/none

.github/workflows/main.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Main
2+
3+
on:
4+
push:
5+
branches: [main]
6+
schedule:
7+
- cron: "0 8,20 * * *"
8+
9+
jobs:
10+
unit-tests:
11+
name: Unit tests
12+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
13+
with:
14+
linux_env_vars: '{"ENABLE_ALL_TRAITS":"1"}'
15+
linux_5_10_enabled: false
16+
linux_6_0_enabled: false
17+
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error"
18+
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error"
19+
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
20+
# Windows is disabled, blocked on Swift Service Lifecycle Windows support: https://github.com/swift-server/swift-service-lifecycle/issues/213
21+
windows_6_0_enabled: false
22+
windows_6_1_enabled: false
23+
windows_nightly_6_1_enabled: false
24+
windows_nightly_main_enabled: false
25+
windows_6_1_arguments_override: "--enable-all-traits --explicit-target-dependency-import-check error"
26+
windows_nightly_6_1_arguments_override: "--enable-all-traits --explicit-target-dependency-import-check error"
27+
windows_nightly_main_arguments_override: "--enable-all-traits --explicit-target-dependency-import-check error"
28+
29+
# Static SDK build blocked on the fact that ConfigurationTesting depends on Swift Testing,
30+
# which doesn't build for Musl. We need a way to only build the Configuration target for Musl.
31+
# Waiting on: https://github.com/apple/swift-nio/pull/3377
32+
# static-sdk:
33+
# name: Static SDK
34+
# # Workaround https://github.com/nektos/act/issues/1875
35+
# uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
36+
37+
macos-tests:
38+
name: macOS tests
39+
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
40+
with:
41+
env_vars: '{"ENABLE_ALL_TRAITS":"1"}'
42+
runner_pool: nightly
43+
build_scheme: swift-configuration-Package
44+
xcode_16_2_enabled: false
45+
46+
release-builds:
47+
name: Release builds
48+
uses: apple/swift-nio/.github/workflows/release_builds.yml@main
49+
with:
50+
linux_env_vars: '{"ENABLE_ALL_TRAITS":"1"}'
51+
linux_5_10_enabled: false
52+
linux_6_0_enabled: false
53+
windows_6_0_enabled: false
54+
windows_6_1_enabled: false
55+
windows_nightly_next_enabled: false
56+
windows_nightly_main_enabled: false

.github/workflows/pull_request.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
env:
8+
ENABLE_ALL_TRAITS: "1"
9+
10+
jobs:
11+
soundness:
12+
name: Soundness
13+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
14+
with:
15+
license_header_check_project_name: "SwiftConfiguration"
16+
17+
unit-tests:
18+
name: Unit tests
19+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
20+
with:
21+
linux_env_vars: '{"ENABLE_ALL_TRAITS":"1"}'
22+
linux_5_10_enabled: false
23+
linux_6_0_enabled: false
24+
linux_6_1_arguments_override: "--explicit-target-dependency-import-check error"
25+
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error"
26+
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
27+
# Windows is disabled, blocked on Swift Service Lifecycle Windows support: https://github.com/swift-server/swift-service-lifecycle/issues/213
28+
windows_6_0_enabled: false
29+
windows_6_1_enabled: false
30+
windows_nightly_6_1_enabled: false
31+
windows_nightly_main_enabled: false
32+
windows_6_1_arguments_override: "--enable-all-traits --explicit-target-dependency-import-check error"
33+
windows_nightly_6_1_arguments_override: "--enable-all-traits --explicit-target-dependency-import-check error"
34+
windows_nightly_main_arguments_override: "--enable-all-traits --explicit-target-dependency-import-check error"
35+
36+
# Static SDK build blocked on the fact that ConfigurationTesting depends on Swift Testing,
37+
# which doesn't build for Musl. We need a way to only build the Configuration target for Musl.
38+
# Waiting on: https://github.com/apple/swift-nio/pull/3377
39+
# static-sdk:
40+
# name: Static SDK
41+
# # Workaround https://github.com/nektos/act/issues/1875
42+
# uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
43+
44+
macos-tests:
45+
name: macOS tests
46+
uses: apple/swift-nio/.github/workflows/macos_tests.yml@main
47+
with:
48+
env_vars: '{"ENABLE_ALL_TRAITS":"1"}'
49+
runner_pool: nightly
50+
build_scheme: swift-configuration-Package
51+
xcode_16_2_enabled: false
52+
53+
release-builds:
54+
name: Release builds
55+
uses: apple/swift-nio/.github/workflows/release_builds.yml@main
56+
with:
57+
linux_env_vars: '{"ENABLE_ALL_TRAITS":"1"}'
58+
linux_5_10_enabled: false
59+
linux_6_0_enabled: false
60+
windows_6_0_enabled: false
61+
windows_6_1_enabled: false
62+
windows_nightly_next_enabled: false
63+
windows_nightly_main_enabled: false
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: read
10+
11+
jobs:
12+
semver-label-check:
13+
name: Semantic version label check
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 1
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
- name: Check for Semantic Version label
22+
uses: apple/swift-nio/.github/actions/pull_request_semver_label_checker@main

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm
7+
Package.resolved
8+
*.pyc
9+
.docc-build

.licenseignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.gitignore
2+
.licenseignore
3+
.swiftformatignore
4+
.spi.yml
5+
.swift-format
6+
.github/
7+
**.md
8+
**.txt
9+
**Package.swift
10+
docker/*
11+
.editorconfig
12+
Scripts/*
13+
Tests/ConfigurationTests/Resources/.env

.spi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1
2+
builder:
3+
configs:
4+
- swift_version: '6.1'
5+
documentation_targets:
6+
- Configuration
7+
- ConfigurationTesting

.swift-format

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"fileScopedDeclarationPrivacy" : {
3+
"accessLevel" : "private"
4+
},
5+
"indentation" : {
6+
"spaces" : 4
7+
},
8+
"indentConditionalCompilationBlocks" : false,
9+
"indentSwitchCaseLabels" : false,
10+
"lineBreakAroundMultilineExpressionChainComponents" : true,
11+
"lineBreakBeforeControlFlowKeywords" : false,
12+
"lineBreakBeforeEachArgument" : true,
13+
"lineBreakBeforeEachGenericRequirement" : true,
14+
"lineLength" : 120,
15+
"maximumBlankLines" : 1,
16+
"prioritizeKeepingFunctionOutputTogether" : false,
17+
"respectsExistingLineBreaks" : true,
18+
"rules" : {
19+
"AllPublicDeclarationsHaveDocumentation" : true,
20+
"AlwaysUseLowerCamelCase" : false,
21+
"AlwaysUseLiteralForEmptyCollectionInit" : true,
22+
"AmbiguousTrailingClosureOverload" : true,
23+
"BeginDocumentationCommentWithOneLineSummary" : true,
24+
"DoNotUseSemicolons" : true,
25+
"DontRepeatTypeInStaticProperties" : false,
26+
"FileScopedDeclarationPrivacy" : true,
27+
"FullyIndirectEnum" : true,
28+
"GroupNumericLiterals" : true,
29+
"IdentifiersMustBeASCII" : true,
30+
"NeverForceUnwrap" : false,
31+
"NeverUseForceTry" : false,
32+
"NeverUseImplicitlyUnwrappedOptionals" : false,
33+
"NoAccessLevelOnExtensionDeclaration" : true,
34+
"NoAssignmentInExpressions" : true,
35+
"NoBlockComments" : false,
36+
"NoCasesWithOnlyFallthrough" : true,
37+
"NoEmptyTrailingClosureParentheses" : true,
38+
"NoLabelsInCasePatterns" : false,
39+
"NoLeadingUnderscores" : false,
40+
"NoParensAroundConditions" : true,
41+
"NoVoidReturnOnFunctionSignature" : true,
42+
"OmitExplicitReturns" : true,
43+
"OneCasePerLine" : true,
44+
"OneVariableDeclarationPerLine" : true,
45+
"OnlyOneTrailingClosureArgument" : true,
46+
"OrderedImports" : false,
47+
"ReplaceForEachWithForLoop" : true,
48+
"ReturnVoidInsteadOfEmptyTuple" : true,
49+
"UseEarlyExits" : false,
50+
"UseLetInEveryBoundCaseVariable" : true,
51+
"UseShorthandTypeNames" : true,
52+
"UseSingleLinePropertyGetter" : false,
53+
"UseSynthesizedInitializer" : true,
54+
"UseTripleSlashForDocumentationComments" : true,
55+
"UseWhereClausesInForLoops" : false,
56+
"ValidateDocumentationComments" : true
57+
},
58+
"spacesAroundRangeFormationOperators" : false,
59+
"tabWidth" : 4,
60+
"version" : 1
61+
}

0 commit comments

Comments
 (0)