From 3a1d8063a514c66afde749aa01d29ee49ee36ceb Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Sun, 9 Jun 2024 22:02:18 +0900 Subject: [PATCH] ci: add `--wasi threads` to wasmtime --- .github/workflows/swiftwasm.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/swiftwasm.yml b/.github/workflows/swiftwasm.yml index e643fab8..d19abb25 100644 --- a/.github/workflows/swiftwasm.yml +++ b/.github/workflows/swiftwasm.yml @@ -45,8 +45,8 @@ jobs: uses: actions/download-artifact@v4 with: name: swift-format.wasm - - run: wasmtime --dir . swift-format.wasm --version - - run: wasmtime --dir . swift-format.wasm lint -r . + - run: wasmtime --dir . --wasi threads swift-format.wasm --version + - run: wasmtime --dir . --wasi threads swift-format.wasm lint -r . test: runs-on: ubuntu-latest container: swiftlang/swift:nightly-main-jammy@sha256:43546dd7abb89b21fca08e5c420a28af6eb7b1edbc0394f6fda8ca33a30da750 @@ -61,4 +61,4 @@ jobs: - run: wasmtime -V - run: swift sdk install $SWIFT_SDK_URL --checksum $SWIFT_SDK_CHECKSUM - run: swift build -c release --build-tests --swift-sdk $TARGET_TRIPLE -Xlinker -z -Xlinker stack-size=$STACK_SIZE - - run: wasmtime --dir / --wasm max-wasm-stack=$STACK_SIZE .build/release/swift-formatPackageTests.wasm + - run: wasmtime --dir / --wasm max-wasm-stack=$STACK_SIZE --wasi threads .build/release/swift-formatPackageTests.wasm