Skip to content

Commit 4154806

Browse files
authored
Test with Swift 5.7/Xcode 14 (#28)
This allows us to detect issues with different Xcode versions.
1 parent b65e7c5 commit 4154806

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,25 @@ jobs:
5757
run: swift test --enable-test-discovery
5858

5959
macos-unit-tests:
60-
runs-on: macos-latest
60+
runs-on: macos-12
6161
needs: build-fixtures
6262
strategy:
6363
matrix:
64+
xcode: ["Xcode_14.0", "Xcode_13.4.1", "Xcode_13.2.1"]
6465
toolchain-version:
6566
- swift-wasm-5.3.0-RELEASE
6667
- swift-wasm-5.4.0-RELEASE
6768
- swift-wasm-5.5.0-RELEASE
6869
- swift-wasm-5.6.0-RELEASE
70+
6971
steps:
7072
- uses: actions/checkout@v2
7173
- uses: actions/download-artifact@v2
7274
with:
7375
name: test-fixtures-${{ matrix.toolchain-version }}
7476
path: Fixtures/build
7577
- name: Select Xcode toolchain
76-
run: sudo xcode-select -s /Applications/Xcode_13.2.1.app/Contents/Developer/
78+
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
7779
- name: Install dependencies
7880
run: brew install wabt
7981
- name: Run unit tests

Sources/WasmTransformer/Readers/VectorSectionReader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public struct VectorSectionIterator<Reader: VectorSectionReader>: IteratorProtoc
2626
}
2727
}
2828

29-
extension VectorSectionReader {
29+
extension VectorSectionReader where Iterator == VectorSectionIterator<Self> {
3030
__consuming public func makeIterator() -> VectorSectionIterator<Self> {
3131
VectorSectionIterator(reader: self, count: count)
3232
}

0 commit comments

Comments
 (0)