Skip to content

Commit 6f357ee

Browse files
authored
Add Windows CI (#71)
* Skip tests with XCTExpectedFailure and comment * Add Windows CI Job
1 parent 23cbf22 commit 6f357ee

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,27 @@ jobs:
4343
- uses: swiftwasm/[email protected]
4444
with:
4545
shell-action: swift build
46+
47+
windows:
48+
name: Windows
49+
strategy:
50+
matrix:
51+
os: [windows-latest]
52+
config: ['debug', 'release']
53+
fail-fast: false
54+
runs-on: ${{ matrix.os }}
55+
steps:
56+
- uses: compnerd/gha-setup-swift@main
57+
with:
58+
branch: swift-5.8.1-release
59+
tag: 5.8.1-RELEASE
60+
- uses: actions/checkout@v3
61+
- name: Build
62+
run: swift build -c ${{ matrix.config }}
63+
- name: Run tests (debug only)
64+
# There is an issue that exists in the 5.8.1 toolchain
65+
# which fails on release configuration testing, but
66+
# this issue is fixed 5.9 so we can remove the if once
67+
# that is generally available.
68+
if: ${{ matrix.config == 'debug' }}
69+
run: swift test

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let package = Package(
2222
]
2323
)
2424

25-
#if swift(>=5.6)
25+
#if swift(>=5.6) && !os(Windows)
2626
// Add the documentation compiler plugin if possible
2727
package.dependencies.append(
2828
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")

Tests/XCTestDynamicOverlayTests/GeneratePlaceholderTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#if !os(Linux)
1+
// TODO: https://github.com/apple/swift-corelibs-xctest/issues/438
2+
#if !os(Linux) && !os(Windows)
23
import Foundation
34
import XCTest
45
import XCTestDynamicOverlay

Tests/XCTestDynamicOverlayTests/UnimplementedTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#if !os(Linux)
1+
// TODO: https://github.com/apple/swift-corelibs-xctest/issues/438
2+
#if !os(Linux) && !os(Windows)
23
import XCTest
34

45
final class UnimplementedTests: XCTestCase {

Tests/XCTestDynamicOverlayTests/XCTContextTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#if !os(Linux)
1+
// TODO: https://github.com/apple/swift-corelibs-xctest/issues/438
2+
#if !os(Linux) && !os(Windows)
23
import XCTest
34
import XCTestDynamicOverlay
45

0 commit comments

Comments
 (0)