Skip to content

Swift 6.1 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 48 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
workflow_dispatch:

jobs:
xcode_16:
xcode_16_3:
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_16.3.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -27,6 +27,20 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage_report.lcov

xcode_16_2:
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Version
run: swift --version
- name: Build
run: swift build --build-tests
- name: Test
run: swift test --skip-build

xcode_15_4:
runs-on: macos-14
env:
Expand Down Expand Up @@ -55,6 +69,19 @@ jobs:
- name: Test
run: swift test

linux_swift_6_1:
runs-on: ubuntu-latest
container: swift:6.1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Version
run: swift --version
- name: Build
run: swift build --build-tests
- name: Test
run: swift test --skip-build

linux_swift_6_0:
runs-on: ubuntu-latest
container: swift:6.0.3
Expand Down Expand Up @@ -94,9 +121,9 @@ jobs:
- name: Test
run: swift test --skip-build

linux_swift_6_0_musl:
linux_swift_6_1_musl:
runs-on: ubuntu-latest
container: swift:6.0.3
container: swift:6.1
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -105,8 +132,24 @@ jobs:
- name: SDK List Pre
run: swift sdk list
- name: Install SDK
run: swift sdk install https://download.swift.org/swift-6.0.3-release/static-sdk/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum 67f765e0030e661a7450f7e4877cfe008db4f57f177d5a08a6e26fd661cdd0bd
run: swift sdk install https://download.swift.org/swift-6.1-release/static-sdk/swift-6.1-RELEASE/swift-6.1-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum 111c6f7d280a651208b8c74c0521dd99365d785c1976a6e23162f55f65379ac6
- name: SDK List Post
run: swift sdk list
- name: Build
run: swift build --swift-sdk x86_64-swift-linux-musl

windows_swift_6_1:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Swift
uses: SwiftyLab/setup-swift@latest
with:
swift-version: "6.1.0"
- name: Version
run: swift --version
- name: Build
run: swift build --build-tests
- name: Test
run: swift test --skip-build
2 changes: 1 addition & 1 deletion Sources/AllocatedLock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ extension AllocatedLock {

@usableFromInline
func tryLock() -> Bool {
TryAcquireSRWLockExclusive(_lock)
TryAcquireSRWLockExclusive(_lock) != 0
}
}
}
Expand Down
Loading