Merge pull request #40 from kkebo/swift-wasm-DEVELOPMENT-SNAPSHOT-202… #223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: ["wasm32-wasi-test"] | |
pull_request: | |
branches: ["wasm32-wasi-test"] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: swiftlang/swift:nightly-main-jammy@sha256:1644f747ed88686ea36bf04720fddaf42a81f70db709396829273a969f46f55e | |
env: | |
STACK_SIZE: 16777216 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bytecodealliance/actions/wasmtime/setup@v1 | |
- run: swift --version | |
- run: wasmtime -V | |
- run: swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-04-29-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-04-29-a-wasm32-unknown-wasi.artifactbundle.zip | |
- run: swift build -c release --build-tests --swift-sdk wasm32-unknown-wasi -Xlinker -z -Xlinker stack-size=$STACK_SIZE | |
- run: wasmtime --dir / --wasm max-wasm-stack=$STACK_SIZE .build/release/swift-syntaxPackageTests.wasm |