diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2025-05-14 17:00:23 +0100 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-05-14 18:09:44 +0100 |
| commit | 12763f6351d0c25b6f90dd7adbe0da3896d8e9c9 (patch) | |
| tree | fb185f27976f7bcc4e12de42fab72731efaa874b /.github | |
| parent | 4d4f1f2284d54dfabf58246034b8fc7fd0282f83 (diff) | |
| download | unit-wasm-12763f6351d0c25b6f90dd7adbe0da3896d8e9c9.tar.gz unit-wasm-12763f6351d0c25b6f90dd7adbe0da3896d8e9c9.tar.bz2 | |
rust: Fix building of unit-wasm and rust examples
When building the rust stuff we were getting the following compiler
error
error: failed to run `rustc` to learn about target-specific information
...
--- stderr
error: Error loading target specification: Could not find specification for target "wasm32-wasi". Run `rustc --print target-list` for a list of built-in targets
This is due to wasm32-wasi being renamed to wasm32-wasip1, with
wasm32-wasi being kept clear for an eventual WASI 1.0 release.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build_tests.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build_tests.yaml b/.github/workflows/build_tests.yaml index 30e5cb8..85ad566 100644 --- a/.github/workflows/build_tests.yaml +++ b/.github/workflows/build_tests.yaml @@ -31,7 +31,7 @@ jobs: steps: - name: Install tools/deps run: | - dnf -y install git wget clang llvm compiler-rt lld make wasi-libc-devel cargo rust rust-std-static-wasm32-unknown-unknown rust-std-static-wasm32-wasi + dnf -y install git wget clang llvm compiler-rt lld make wasi-libc-devel cargo rust rust-std-static-wasm32-wasip1 wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | tar --strip-components=1 -xvzf - -C $(dirname $(clang -print-runtime-dir)) - uses: actions/checkout@v3 @@ -55,7 +55,7 @@ jobs: wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | tar --strip-components=1 -xvzf - -C $(dirname $(clang -print-runtime-dir)) curl https://sh.rustup.rs -sSf | sh -s -- -y . "$HOME/.cargo/env" - rustup target add wasm32-wasi + rustup target add wasm32-wasip1 wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sysroot-20.0.tar.gz | tar -xzf - -C ${RUNNER_TEMP} - uses: actions/checkout@v3 |
