-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(language.rust): check wasmwasi target and return error if mi…
…smatched Breaking change to support Rust 1.84 and newer BREAKING CHANGE: Only the wasm32-waip1 build target is accepted if a non default config is provided
- Loading branch information
1 parent
9679de4
commit c7c0910
Showing
6 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,8 +125,8 @@ jobs: | |
key: ${{ runner.os }}-test-go-mod-${{ hashFiles('**/go.sum') }} | ||
- name: "Install Rust" | ||
uses: dtolnay/[email protected] | ||
- name: "Add wasm32-wasi Rust target" | ||
run: rustup target add wasm32-wasi --toolchain 1.83.0 | ||
- name: "Add wasm32-wasip1 Rust target" | ||
run: rustup target add wasm32-wasip1 --toolchain 1.83.0 | ||
- name: "Validate Rust toolchain" | ||
run: rustup show && rustup target list --installed --toolchain 1.83.0 | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,9 @@ FROM rust:latest | |
LABEL maintainer="Fastly OSS <[email protected]>" | ||
|
||
ENV RUST_TOOLCHAIN=1.83.0 | ||
ENV WASM_WASI_RELEASE=wasm32-wasip1 | ||
RUN rustup toolchain install ${RUST_TOOLCHAIN} \ | ||
&& rustup target add wasm32-wasi --toolchain ${RUST_TOOLCHAIN} \ | ||
&& rustup target add ${WASM_WASI_RELEASE} --toolchain ${RUST_TOOLCHAIN} \ | ||
&& apt-get update && apt-get install -y curl jq && apt-get -y clean && rm -rf /var/lib/apt/lists/* \ | ||
&& export FASTLY_CLI_VERSION=$(curl -s https://api.github.com/repos/fastly/cli/releases/latest | jq -r .tag_name | cut -d 'v' -f 2) \ | ||
GOARCH=$(dpkg --print-architecture) \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters