Skip to content
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

Test with Swift 5.7/Xcode 14 #28

Merged
merged 5 commits into from Aug 12, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -57,23 +57,25 @@ jobs:
run: swift test --enable-test-discovery

macos-unit-tests:
runs-on: macos-latest
runs-on: macos-12
needs: build-fixtures
strategy:
matrix:
xcode: ["Xcode_14.0", "Xcode_13.4.1", "Xcode_13.2.1"]
toolchain-version:
- swift-wasm-5.3.0-RELEASE
- swift-wasm-5.4.0-RELEASE
- swift-wasm-5.5.0-RELEASE
- swift-wasm-5.6.0-RELEASE

steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: test-fixtures-${{ matrix.toolchain-version }}
path: Fixtures/build
- name: Select Xcode toolchain
run: sudo xcode-select -s /Applications/Xcode_13.2.1.app/Contents/Developer/
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
- name: Install dependencies
run: brew install wabt
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion Sources/WasmTransformer/Readers/VectorSectionReader.swift
Expand Up @@ -26,7 +26,7 @@ public struct VectorSectionIterator<Reader: VectorSectionReader>: IteratorProtoc
}
}

extension VectorSectionReader {
extension VectorSectionReader where Iterator == VectorSectionIterator<Self> {
__consuming public func makeIterator() -> VectorSectionIterator<Self> {
VectorSectionIterator(reader: self, count: count)
}
Expand Down