diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..b5c5eb7 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,24 @@ +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"}]' + 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 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: