File tree Expand file tree Collapse file tree 1 file changed +23
-12
lines changed
Expand file tree Collapse file tree 1 file changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -74,18 +74,29 @@ jobs:
7474 - name : Build for static-stdlib
7575 run : CONFIG=${{ matrix.config }} make build-for-static-stdlib
7676
77- # NB: Downloading the toolchain gets rate-limited by GitHub
78- # wasm:
79- # name: Wasm
80- # runs-on: macos-14
81- # steps:
82- # - uses: actions/checkout@v4
83- # - name: Select Xcode
84- # run: sudo xcode-select -s /Applications/Xcode_15.4.app
85- # - name: Select Swift version
86- # run: echo 'wasm-DEVELOPMENT-SNAPSHOT-2024-07-08-a' > .swift-version
87- # - name: Build
88- # run: swift run carton bundle
77+ wasm :
78+ name : SwiftWasm
79+ runs-on : ubuntu-latest
80+ strategy :
81+ matrix :
82+ toolchain :
83+ - wasm-5.9.2-RELEASE
84+ - wasm-5.10.0-RELEASE
85+ steps :
86+ - name : Cache toolchains
87+ uses : actions/cache@v3
88+ with :
89+ path : ~/Library/Developer/Toolchains
90+ key : ${{ matrix.toolchain }}
91+ - uses : actions/checkout@v4
92+ - uses : bytecodealliance/actions/wasmtime/setup@v1
93+ - uses : swiftwasm/setup-swiftwasm@v1
94+ with :
95+ swift-version : ${{ matrix.toolchain }}
96+ - name : Build tests
97+ run : swift build --triple wasm32-unknown-wasi --build-tests -Xlinker -z -Xlinker stack-size=$((1024 * 1024))
98+ - name : Run tests
99+ run : wasmtime .build/debug/xctest-dynamic-overlayPackageTests.wasm
89100
90101 windows :
91102 name : Windows
You can’t perform that action at this time.
0 commit comments