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:
26
26
27
27
linux :
28
28
name : Linux
29
+ strategy :
30
+ matrix :
31
+ swift :
32
+ - ' 6.0'
29
33
runs-on : ubuntu-latest
34
+ container : swift:${{ matrix.swift }}
30
35
steps :
31
- - name : Install Swift
32
-
33
- with :
34
- version : swift-5.9-DEVELOPMENT-SNAPSHOT-2023-09-16-a
35
36
- uses : actions/checkout@v4
36
37
- name : Run tests
37
38
run : swift test
38
39
39
- # NB: 5.9 snapshot unavailable, wait for release
40
+ # NB: swift- snapshot-testing needs to be updated for Wasm support
40
41
# wasm:
41
42
# name: Wasm
42
43
# runs-on: ubuntu-latest
43
- # strategy:
44
- # matrix:
45
- # include:
46
- # - { toolchain: wasm-5.9-RELEASE }
47
44
# steps:
48
45
# - 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))
53
58
54
59
# NB: 5.9 snapshot outdated, wait for release
55
60
# windows:
You can’t perform that action at this time.
0 commit comments