File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed
Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -26,30 +26,35 @@ jobs:
2626
2727 linux :
2828 name : Linux
29+ strategy :
30+ matrix :
31+ swift :
32+ - ' 6.0'
2933 runs-on : ubuntu-latest
34+ container : swift:${{ matrix.swift }}
3035 steps :
31- - name : Install Swift
32- 33- with :
34- version : swift-5.9-DEVELOPMENT-SNAPSHOT-2023-09-16-a
3536 - uses : actions/checkout@v4
3637 - name : Run tests
3738 run : swift test
3839
39- # NB: 5.9 snapshot unavailable, wait for release
40+ # NB: swift- snapshot-testing needs to be updated for Wasm support
4041 # wasm:
4142 # name: Wasm
4243 # runs-on: ubuntu-latest
43- # strategy:
44- # matrix:
45- # include:
46- # - { toolchain: wasm-5.9-RELEASE }
4744 # steps:
4845 # - uses: actions/checkout@v4
49- # - run: echo "${{ matrix.toolchain }}" > .swift-version
50- # - uses: swiftwasm/[email protected] 51- # with:
52- # shell-action: carton test --environment node
46+ # - uses: bytecodealliance/actions/wasmtime/setup@v1
47+ # - name: Install Swift and Swift SDK for WebAssembly
48+ # run: |
49+ # PREFIX=/opt/swift
50+ # set -ex
51+ # curl -f -o /tmp/swift.tar.gz "https://download.swift.org/swift-6.0.2-release/ubuntu2204/swift-6.0.2-RELEASE/swift-6.0.2-RELEASE-ubuntu22.04.tar.gz"
52+ # sudo mkdir -p $PREFIX; sudo tar -xzf /tmp/swift.tar.gz -C $PREFIX --strip-component 1
53+ # $PREFIX/usr/bin/swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.0.2-RELEASE/swift-wasm-6.0.2-RELEASE-wasm32-unknown-wasi.artifactbundle.zip --checksum 6ffedb055cb9956395d9f435d03d53ebe9f6a8d45106b979d1b7f53358e1dcb4
54+ # echo "$PREFIX/usr/bin" >> $GITHUB_PATH
55+ #
56+ # - name: Build
57+ # run: swift build --swift-sdk wasm32-unknown-wasi -Xlinker -z -Xlinker stack-size=$((1024 * 1024))
5358
5459 # NB: 5.9 snapshot outdated, wait for release
5560 # windows:
You can’t perform that action at this time.
0 commit comments