File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ pull_request :
3+ branches : [main]
4+
5+ jobs :
6+ smoke-test :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v4
10+ - id : setup-development
11+ run : |
12+ toolchain_path="$RUNNER_TEMP/swift"
13+ mkdir -p "$toolchain_path"
14+ curl -L "https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2025-06-12-a/swift-DEVELOPMENT-SNAPSHOT-2025-06-12-a-ubuntu22.04.tar.gz" | tar xz --strip-component 1 -C "$toolchain_path"
15+ echo "$toolchain_path/usr/bin" >> $GITHUB_PATH
16+ - uses : swiftwasm/setup-swiftwasm@v2
17+ id : setup-swiftwasm
18+ with :
19+ target : wasm32-unknown-wasi
20+ - run : swift build --package-path ./Example --static-swift-stdlib
21+ - run : ./Example/.build/debug/Example
22+ - run : swift build --package-path ./Example --static-swift-stdlib --traits Minimal
23+ - run : ./Example/.build/debug/Example
24+ - run : swift build --package-path ./Example --swift-sdk "${{ steps.setup-swiftwasm.outputs.swift-sdk-id }}"
25+ - run : wasmkit run ./Example/.build/debug/Example.wasm
26+ - run : swift build --package-path ./Example --swift-sdk "${{ steps.setup-swiftwasm.outputs.swift-sdk-id }}" --traits Minimal
27+ - run : wasmkit run ./Example/.build/debug/Example.wasm
You can’t perform that action at this time.
0 commit comments