diff --git a/.cargo/config.toml b/.cargo/config.toml index e9a242c..aa3925b 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,3 +3,9 @@ # * AWS auth environment variables, for running the wstd-aws integration tests. # * . directory is available at . runner = "wasmtime run -Shttp --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_SESSION_TOKEN --dir .::." + +[target.wasm32-wasip3] +# wasmtime is given: +# * AWS auth environment variables, for running the wstd-aws integration tests. +# * . directory is available at . +runner = "wasmtime run -Shttp -Sp3 --env AWS_ACCESS_KEY_ID --env AWS_SECRET_ACCESS_KEY --env AWS_SESSION_TOKEN --dir .::." diff --git a/.github/actions/install-rust/action.yml b/.github/actions/install-rust/action.yml index 0d11907..57cc11c 100644 --- a/.github/actions/install-rust/action.yml +++ b/.github/actions/install-rust/action.yml @@ -31,6 +31,11 @@ runs: rustup update "${{ steps.select.outputs.version }}" --no-self-update rustup default "${{ steps.select.outputs.version }}" + # Required for -Zbuild-std for the wasip3 target. + if [ "${{ inputs.toolchain }}" = "nightly" ]; then + rustup component add rust-src + fi + # Save disk space by avoiding incremental compilation. Also turn down # debuginfo from 2 to 0 to help save disk space. cat >> "$GITHUB_ENV" <