Skip to content

Commit 8681236

Browse files
committed
Swift 5.10
1 parent 3dd95cc commit 8681236

File tree

3 files changed

+44
-15
lines changed

3 files changed

+44
-15
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
xcode_14_3:
10-
runs-on: macos-13
9+
xcode_15_2:
10+
runs-on: macos-14
1111
env:
12-
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
12+
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Version
1717
run: swift --version
1818
- name: Build
@@ -22,30 +22,43 @@ jobs:
2222
- name: Gather code coverage
2323
run: xcrun llvm-cov export -format="lcov" .build/debug/AllocatedLockPackageTests.xctest/Contents/MacOS/AllocatedLockPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
2424
- name: Upload Coverage
25-
uses: codecov/codecov-action@v3
25+
uses: codecov/codecov-action@v4
2626
with:
2727
files: ./coverage_report.lcov
2828

29-
xcode_14_2:
30-
runs-on: macos-12
29+
xcode_14_3_1:
30+
runs-on: macos-13
3131
env:
32-
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
32+
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Version
37+
run: swift --version
38+
- name: Build
39+
run: swift build --build-tests
40+
- name: Test
41+
run: swift test
42+
43+
linux_swift_5_10:
44+
runs-on: ubuntu-latest
45+
container: swift:5.8
3346
steps:
3447
- name: Checkout
35-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
3649
- name: Version
3750
run: swift --version
3851
- name: Build
3952
run: swift build --build-tests
4053
- name: Test
4154
run: swift test --skip-build
4255

43-
linux_swift_5_7:
56+
linux_swift_5_9:
4457
runs-on: ubuntu-latest
45-
container: swift:5.7
58+
container: swift:5.8
4659
steps:
4760
- name: Checkout
48-
uses: actions/checkout@v3
61+
uses: actions/checkout@v4
4962
- name: Version
5063
run: swift --version
5164
- name: Build
@@ -58,7 +71,20 @@ jobs:
5871
container: swift:5.8
5972
steps:
6073
- name: Checkout
61-
uses: actions/checkout@v3
74+
uses: actions/checkout@v4
75+
- name: Version
76+
run: swift --version
77+
- name: Build
78+
run: swift build --build-tests
79+
- name: Test
80+
run: swift test --skip-build
81+
82+
linux_swift_5_7:
83+
runs-on: ubuntu-latest
84+
container: swift:5.7
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@v4
6288
- name: Version
6389
run: swift --version
6490
- name: Build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build](https://github.com/swhitty/AllocatedLock/actions/workflows/build.yml/badge.svg)](https://github.com/swhitty/AllocatedLock/actions/workflows/build.yml)
22
[![Codecov](https://codecov.io/gh/swhitty/AllocatedLock/graphs/badge.svg)](https://codecov.io/gh/swhitty/AllocatedLock)
33
[![Platforms](https://img.shields.io/badge/platforms-iOS%20|%20Mac%20|%20tvOS%20|%20Linux%20|%20Windows-lightgray.svg)](https://github.com/swhitty/AllocatedLock/blob/main/Package.swift)
4-
[![Swift 5.8](https://img.shields.io/badge/swift-5.7%20–%205.8-red.svg?style=flat)](https://developer.apple.com/swift)
4+
[![Swift 5.10](https://img.shields.io/badge/swift-5.7%20–%205.10-red.svg?style=flat)](https://developer.apple.com/swift)
55
[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://opensource.org/licenses/MIT)
66
[![Twitter](https://img.shields.io/badge/twitter-@simonwhitty-blue.svg)](http://twitter.com/simonwhitty)
77

Sources/AllocatedLock.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ public extension AllocatedLock where State == Void {
7878

7979
#if canImport(Darwin)
8080

81-
@_implementationOnly import os
81+
import struct os.os_unfair_lock_t
82+
import struct os.os_unfair_lock
83+
import func os.os_unfair_lock_lock
84+
import func os.os_unfair_lock_unlock
8285

8386
extension AllocatedLock {
8487
@usableFromInline

0 commit comments

Comments
 (0)