From aaed6134e10aac952d61be9e2e02fd25f3069def Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Tue, 4 Mar 2025 23:15:02 -0800 Subject: [PATCH 1/3] [CI] Add support for GitHub Actions --- .github/workflows/pull_request.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..6936d99 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,17 @@ +name: Pull request + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + tests: + name: Test + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main + with: + linux_exclude_swift_versions: '[{"swift_version": "5.8"}]' + soundness: + name: Soundness + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main + with: + license_header_check_project_name: "Swift.org" From 81d30f50be5f2abb36b8b45b7bf87c369dedfd96 Mon Sep 17 00:00:00 2001 From: Mishal Shah Date: Tue, 4 Mar 2025 23:35:49 -0800 Subject: [PATCH 2/3] Update the swift-evolution urls --- README.md | 6 +++--- Sources/Atomics/Atomics.docc/Atomics.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5afb7f3..33f1cb3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Swift Atomics ⚛︎︎ -[SE-0282]: https://github.com/apple/swift-evolution/blob/master/proposals/0282-atomics.md -[SE-0282r0]: https://github.com/apple/swift-evolution/blob/3a358a07e878a58bec256639d2beb48461fc3177/proposals/0282-atomics.md +[SE-0282]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0282-atomics.md +[SE-0282r0]: https://github.com/swiftlang/swift-evolution/blob/3a358a07e878a58bec256639d2beb48461fc3177/proposals/0282-atomics.md This package implements an atomics library for Swift, providing atomic operations for a variety of Swift types, including integers and pointer values. The goal is to enable intrepid developers to start building synchronization constructs directly in Swift. @@ -161,7 +161,7 @@ Atomic access is implemented in terms of dedicated atomic storage representation - it enables custom storage representations (such as the one used by atomic strong references), and - it is a better fit with the standard C atomics library that we use to implement the actual operations (as enabled by [SE-0282]). -[SE-0282]: https://github.com/apple/swift-evolution/blob/master/proposals/0282-atomics.md +[SE-0282]: https://github.com/apple/swift-evolution/blob/main/proposals/0282-atomics.md While the underlying pointer-based atomic operations are exposed as static methods on the corresponding [`AtomicStorage`][AtomicStorage] types, we strongly recommend the use of higher-level atomic wrappers to manage the details of preparing/disposing atomic storage. This version of the library provides two wrapper types: diff --git a/Sources/Atomics/Atomics.docc/Atomics.md b/Sources/Atomics/Atomics.docc/Atomics.md index 59e63c6..dd62b51 100644 --- a/Sources/Atomics/Atomics.docc/Atomics.md +++ b/Sources/Atomics/Atomics.docc/Atomics.md @@ -51,7 +51,7 @@ Atomic access is implemented in terms of dedicated atomic storage representation - it enables custom storage representations (such as the one used by atomic strong references), and - it is a better fit with the standard C atomics library that we use to implement the actual operations (as enabled by [SE-0282]). -[SE-0282]: https://github.com/apple/swift-evolution/blob/master/proposals/0282-atomics.md +[SE-0282]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0282-atomics.md While the underlying pointer-based atomic operations are exposed as static methods on the corresponding `AtomicStorage` types, we strongly recommend the use of higher-level atomic wrappers to manage the details of preparing/disposing atomic storage. This version of the library provides two wrapper types: From 4bd141c54f2c6ac358a2563f075d8d7849acd4da Mon Sep 17 00:00:00 2001 From: Nate Cook Date: Wed, 5 Mar 2025 11:19:36 -0600 Subject: [PATCH 3/3] Disable failing checks --- .github/workflows/pull_request.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6936d99..b5c5eb7 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,8 +10,15 @@ jobs: uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main with: linux_exclude_swift_versions: '[{"swift_version": "5.8"}]' + windows_exclude_swift_versions: '[{"swift_version": "5.9"}]' + soundness: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main with: license_header_check_project_name: "Swift.org" + docs_check_enabled: false + license_header_check_enabled: false + format_check_enabled: false + python_lint_check_enabled: false + shell_check_enabled: false