Skip to content

Commit 335d55f

Browse files
authored
Set up CI (#8)
1 parent ff5e6cf commit 335d55f

File tree

4 files changed

+107
-0
lines changed

4 files changed

+107
-0
lines changed

.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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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_5_10_enabled: false
15+
linux_6_0_enabled: false
16+
linux_6_1_enabled: false
17+
# linux_6_1_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
18+
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
19+
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable"
20+
21+
static-sdk:
22+
name: Static SDK
23+
uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
24+
25+
release-builds:
26+
name: Release builds
27+
uses: apple/swift-nio/.github/workflows/release_builds.yml@main
28+
with:
29+
linux_5_10_enabled: false
30+
linux_6_0_enabled: false
31+
linux_6_1_enabled: false

.github/workflows/pull_request.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
soundness:
9+
name: Soundness
10+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
11+
with:
12+
api_breakage_check_container_image: "swift:6.1-noble"
13+
license_header_check_project_name: "SwiftHTTPServer"
14+
15+
unit-tests:
16+
name: Unit tests
17+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
18+
with:
19+
linux_5_10_enabled: false
20+
linux_6_0_enabled: false
21+
linux_6_1_enabled: false
22+
# linux_6_1_arguments_override: "-Xswiftc -warnings-as-errors --explicit-target-dependency-import-check error"
23+
linux_nightly_next_arguments_override: "--explicit-target-dependency-import-check error"
24+
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
25+
26+
cxx-interop:
27+
name: Cxx interop
28+
uses: apple/swift-nio/.github/workflows/cxx_interop.yml@main
29+
with:
30+
linux_5_10_enabled: false
31+
linux_6_0_enabled: false
32+
linux_6_1_enabled: false
33+
34+
static-sdk:
35+
name: Static SDK
36+
uses: apple/swift-nio/.github/workflows/static_sdk.yml@main
37+
38+
release-builds:
39+
name: Release builds
40+
uses: apple/swift-nio/.github/workflows/release_builds.yml@main
41+
with:
42+
linux_5_10_enabled: false
43+
linux_6_0_enabled: false
44+
linux_6_1_enabled: false
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR label
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
7+
jobs:
8+
semver-label-check:
9+
name: Semantic version label check
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 1
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
- name: Check for Semantic Version label
18+
uses: apple/swift-nio/.github/actions/pull_request_semver_label_checker@main

0 commit comments

Comments
 (0)