-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swift Language Support: Drop <5.9, Add 6.0 (#26)
* Swift Language Support: Drop <5.9, Add 6.0 * wip * wip * wip
- Loading branch information
1 parent
550def1
commit ccb410b
Showing
6 changed files
with
70 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,45 +16,45 @@ concurrency: | |
jobs: | ||
library: | ||
name: macOS | ||
runs-on: macos-14 | ||
strategy: | ||
matrix: | ||
xcode: ['14.3.1'] | ||
xcode: ['15.4'] | ||
config: ['debug', 'release'] | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Select Xcode ${{ matrix.xcode }} | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- name: Run ${{ matrix.config }} tests | ||
run: CONFIG=${{ matrix.config }} make test | ||
|
||
linux: | ||
name: Linux | ||
name: Linux (Swift ${{ matrix.swift }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
config: ['debug', 'release'] | ||
runs-on: ${{ matrix.os }} | ||
swift: | ||
- '5.10' | ||
container: swift:${{ matrix.swift }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: swift build | ||
- uses: actions/checkout@v4 | ||
- name: Run tests | ||
run: swift test -c ${{ matrix.config }} | ||
|
||
wasm: | ||
name: Wasm | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- { toolchain: wasm-5.7.1-RELEASE } | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: echo "${{ matrix.toolchain }}" > .swift-version | ||
- uses: swiftwasm/[email protected] | ||
with: | ||
shell-action: carton test --environment node | ||
name: Wasm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bytecodealliance/actions/wasmtime/setup@v1 | ||
- uses: swiftwasm/setup-swiftwasm@v1 | ||
with: | ||
swift-version: "wasm-5.9.2-RELEASE" | ||
- name: Build tests | ||
run: swift build --triple wasm32-unknown-wasi --build-tests | ||
- name: Run tests | ||
run: wasmtime --dir . .build/debug/swift-concurrency-extrasPackageTests.wasm | ||
|
||
windows: | ||
name: Windows | ||
|
@@ -66,9 +66,9 @@ jobs: | |
steps: | ||
- uses: compnerd/gha-setup-swift@main | ||
with: | ||
branch: swift-5.8-release | ||
tag: 5.8-RELEASE | ||
branch: swift-5.10-release | ||
tag: 5.10-RELEASE | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Run tests | ||
run: swift build -c ${{ matrix.config }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// swift-tools-version: 6.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "swift-concurrency-extras", | ||
platforms: [ | ||
.iOS(.v13), | ||
.macOS(.v10_15), | ||
.tvOS(.v13), | ||
.watchOS(.v6), | ||
], | ||
products: [ | ||
.library( | ||
name: "ConcurrencyExtras", | ||
targets: ["ConcurrencyExtras"] | ||
) | ||
], | ||
targets: [ | ||
.target( | ||
name: "ConcurrencyExtras" | ||
), | ||
.testTarget( | ||
name: "ConcurrencyExtrasTests", | ||
dependencies: [ | ||
"ConcurrencyExtras" | ||
] | ||
), | ||
] | ||
) | ||
|
||
#if !os(Windows) | ||
// Add the documentation compiler plugin if possible | ||
package.dependencies.append( | ||
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0") | ||
) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters