Avatar
omochimetaru 5/14/2024 1:16 PM
[omochi@omochi-mbp swift-react (swift510 *%)]$ docker/run srt bash + docker run -it -v/Users/omochi/github/omochi/swift-react:/work -w /work srt bash root@a6b7229d9153:/work# ls BrowserTests CartonExample Codegen LICENSE Package.resolved Package.swift README.ja.md README.md Sources Tests bin docker docs temp root@a6b7229d9153:/work# bin/test + swift build --experimental-swift-sdk wasm32-unknown-wasi --build-tests --disable-build-manifest-caching --static-swift-stdlib -Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor -Xlinker --export-if-defined=__main_argc_argv -Xlinker --stack-first -Xlinker --global-base=1048576 -Xlinker -z -Xlinker stack-size=1048576 warning: `--experimental-swift-sdk` is deprecated and will be removed in a future version of SwiftPM. Use `--swift-sdk` instead. warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target /work/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc Building for debugging... warning: Could not read SDKSettings.json for SDK at: /root/.swiftpm/swift-sdks/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-05-02-a-wasm32-unknown-wasi.artifactbundle/DEVELOPMENT-SNAPSHOT-2024-05-02-a-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk <unknown>:0: warning: libc not found for 'wasm32-unknown-wasi'; C stdlib may be unavailable warning: Could not read SDKSettings.json for SDK at: /root/.swiftpm/swift-sdks/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-05-02-a-wasm32-unknown-wasi.artifactbundle/DEVELOPMENT-SNAPSHOT-2024-05-02-a-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk <unknown>:0: warning: libc not found for 'wasm32-unknown-wasi'; C stdlib may be unavailable [5/5] Emitting module swift_reactPackageTests Build complete! (1.11s) + CartonFrontend test --prebuilt-test-bundle-path .build/debug/swift-reactPackageTests.wasm --environment browser
1:16 PM
dockerの中から CartonFrontend test してみたけど固まったのはブラウザが入ってないからだろうか
1:18 PM
--environment browser なしだと + CartonFrontend test --prebuilt-test-bundle-path .build/debug/swift-reactPackageTests.wasm Error: No WASI runtime found. Please install one of the following: wasmtime, wasmer ちゃんと入ってないっていうけど (edited)