Skip to content

Commit 35cb5c5

Browse files
committed
Merge branch 'main' of github.com:cmcgee1024/swiftly into proxies-design
2 parents 7269128 + 5d8ac14 commit 35cb5c5

28 files changed

+242
-1658
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version of swiftly to build release artifacts"
8+
required: true
9+
type: string
10+
default: "0.3.0"
11+
skip:
12+
description: "Perform release checks, such as the git tag, and swift version, or '--skip' to skip that."
13+
required: true
14+
type: string
15+
default: "--skip"
16+
17+
jobs:
18+
buildrelease:
19+
name: Build Release
20+
runs-on: ubuntu-latest
21+
container:
22+
image: "swift:6.0-rhel-ubi9"
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
- name: Build Artifact
27+
run: swift run build-swiftly-release ${{ inputs.skip }} ${{ inputs.version }}
28+
- name: Upload Artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
path: .build/release/swiftly-*.tar.gz
32+
if-no-files-found: error

.github/workflows/pull_request.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Pull request
1+
name: Pull Request
22

33
on:
44
pull_request:
55
types: [opened, reopened, synchronize]
6+
push:
7+
branches: [main]
68

79
jobs:
810
soundness:
@@ -21,24 +23,29 @@ jobs:
2123
name: Test
2224
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
2325
with:
24-
# linux_os_versions: "[\"jammy\", \"noble\", \"focal\", \"amazonlinux2\", \"rhel-ubi9\", \"bookworm\", \"fedora39\"]"
25-
# Not working: noble (compile error in TSC FileSystem), bookworm (missing memory.h), fedora39 (missing memory.h)
26-
linux_os_versions: "[\"jammy\", \"focal\", \"rhel-ubi9\"]"
26+
# Amazon Linux 2 won't work with GH infrastructure
27+
linux_os_versions: "[\"jammy\", \"focal\", \"rhel-ubi9\", \"noble\", \"bookworm\", \"fedora39\"]"
2728
# We only care about the current stable release, because that's where we make our swiftly releases
2829
linux_exclude_swift_versions: "[{\"swift_version\": \"nightly-main\"},{\"swift_version\": \"nightly-6.0\"},{\"swift_version\": \"5.8\"},{\"swift_version\": \"5.9\"},{\"swift_version\": \"5.10\"}]"
29-
linux_pre_build_command: ((apt-get update && apt-get -y install curl make) || ((curl --help || yum -y install curl) && yum -y install make)) && ./scripts/install-libarchive.sh
30+
linux_pre_build_command: ./scripts/prep-gh-action.sh && ./scripts/install-libarchive.sh
3031
enable_windows_checks: false
3132

32-
releasebuild:
33-
name: Release Build
34-
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
35-
with:
36-
linux_os_versions: "[\"rhel-ubi9\"]"
37-
# We only care about the current stable release, because that's where we make our swiftly releases
38-
linux_exclude_swift_versions: "[{\"swift_version\": \"nightly-main\"},{\"swift_version\": \"nightly-6.0\"},{\"swift_version\": \"5.8\"},{\"swift_version\": \"5.9\"},{\"swift_version\": \"5.10\"}]"
39-
linux_pre_build_command: echo ""
40-
linux_build_command: swift run build-swiftly-release --skip 0.4.0
41-
enable_windows_checks: false
33+
releasebuildcheck:
34+
name: Release Build Check
35+
runs-on: ubuntu-latest
36+
container:
37+
image: "swift:6.0-rhel-ubi9"
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v4
41+
- name: Build Artifact
42+
run: swift run build-swiftly-release --skip "999.0.0"
43+
- name: Upload Artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
path: .build/release/swiftly-*.tar.gz
47+
if-no-files-found: error
48+
retention-days: 1
4249

4350
formatcheck:
4451
name: Format Check
@@ -47,6 +54,6 @@ jobs:
4754
# We only need to run this with one swift release and on one of the linux distributions
4855
linux_os_versions: "[\"jammy\"]"
4956
linux_exclude_swift_versions: "[{\"swift_version\": \"nightly-main\"},{\"swift_version\": \"nightly-6.0\"},{\"swift_version\": \"5.8\"},{\"swift_version\": \"5.9\"},{\"swift_version\": \"5.10\"}]"
50-
linux_pre_build_command: echo ""
57+
linux_pre_build_command: ./scripts/prep-gh-action.sh
5158
linux_build_command: swift run swiftformat --lint --dryrun .
5259
enable_windows_checks: false

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.3.0"),
1818
.package(url: "https://github.com/swift-server/async-http-client", from: "1.21.2"),
1919
.package(url: "https://github.com/apple/swift-nio.git", from: "2.64.0"),
20-
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.6.1"),
20+
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.7.1"),
2121
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
2222
// This dependency provides the correct version of the formatter so that you can run `swift run swiftformat Package.swift Plugins/ Sources/ Tests/`
2323
.package(url: "https://github.com/nicklockwood/SwiftFormat", exact: "0.49.18"),

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Target: x86_64-unknown-linux-gnu
4444
## Platform support
4545

4646
- Linux-based platforms listed on https://swift.org/download
47-
- CentOS 7 will not be supported due to some dependencies of swiftly not supporting it, however.
4847

4948
Right now, swiftly is in early stages of development and is supported on Linux and macOS. For more detailed information about swiftly's intended features and implementation, check out the [design document](DESIGN.md).
5049

0 commit comments

Comments
 (0)