-
Notifications
You must be signed in to change notification settings - Fork 732
Raise wasi-sdk to 25 and wabt to 1.0.37 #4187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lum1n0us
merged 2 commits into
bytecodealliance:main
from
lum1n0us:fix/action_install_wasi_wabt
Apr 17, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| # Get URLs from: | ||
| # - https://github.com/WebAssembly/wasi-sdk/releases | ||
| # - https://github.com/WebAssembly/wabt/releases | ||
|
|
||
| # Install WASI-SDK and WABT at /opt | ||
| # /opt is the assumed location widely used in the project | ||
| name: Install WASI-SDK and WABT | ||
|
|
||
| description: A composite action to download and install wasi-sdk and wabt on Ubuntu, macOS. | ||
|
|
||
| inputs: | ||
| os: | ||
| description: "Operating system to install on (ubuntu, macos)" | ||
| required: true | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Check Runner OS | ||
| if: ${{ !startsWith(inputs.os, 'ubuntu') && !startsWith(inputs.os, 'windows') && !startsWith(inputs.os, 'macos') }} | ||
| shell: bash | ||
| run: | | ||
| echo "::error title=⛔ error hint::Support Ubuntu, Windows, and macOS Only" | ||
| exit 1 | ||
|
|
||
| - name: Set up wasi-sdk and wabt on Ubuntu | ||
| if: ${{ startsWith(inputs.os, 'ubuntu') }} | ||
| shell: bash | ||
| run: | | ||
| sudo wget -O wasi-sdk.tar.gz --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz | ||
| sudo tar -xf wasi-sdk.tar.gz | ||
| sudo ln -sf wasi-sdk-25.0-x86_64-linux/ wasi-sdk | ||
| sudo wget -O wabt.tar.gz --progress=dot:giga https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-ubuntu-20.04.tar.gz | ||
| sudo tar -xf wabt.tar.gz | ||
| sudo ln -sf wabt-1.0.37 wabt | ||
| /opt/wasi-sdk/bin/clang --version | ||
| /opt/wabt/bin/wasm-interp --version | ||
| echo "::notice::wasi-sdk-25 and wabt-1.0.37 installed on ubuntu" | ||
| working-directory: /opt | ||
|
|
||
| - name: Set up wasi-sdk and wabt on macOS-13 (intel) | ||
| if: ${{ inputs.os == 'macos-13' }} | ||
| shell: bash | ||
| run: | | ||
| sudo wget -O wasi-sdk.tar.gz --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-macos.tar.gz | ||
| sudo tar -xf wasi-sdk.tar.gz | ||
| sudo ln -sf wasi-sdk-25.0-x86_64-macos wasi-sdk | ||
| sudo wget -O wabt.tar.gz --progress=dot:giga https://github.com/WebAssembly/wabt/releases/download/1.0.36/wabt-1.0.36-macos-12.tar.gz | ||
| sudo tar -xf wabt.tar.gz | ||
| sudo ln -sf wabt-1.0.36 wabt | ||
| /opt/wasi-sdk/bin/clang --version | ||
| /opt/wabt/bin/wasm-interp --version | ||
| echo "::notice::wasi-sdk-25 and wabt-1.0.36 installed on macos-13" | ||
| working-directory: /opt | ||
|
|
||
| - name: Set up wasi-sdk and wabt on macOS-14 (arm64) | ||
| if: ${{ inputs.os == 'macos-14' }} | ||
| shell: bash | ||
| run: | | ||
| sudo wget -O wasi-sdk.tar.gz --progress=dot:giga https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-arm64-macos.tar.gz | ||
| sudo tar -xf wasi-sdk.tar.gz | ||
| sudo ln -sf wasi-sdk-25.0-arm64-macos wasi-sdk | ||
| sudo wget -O wabt.tar.gz --progress=dot:giga https://github.com/WebAssembly/wabt/releases/download/1.0.37/wabt-1.0.37-macos-14.tar.gz | ||
| sudo tar -xf wabt.tar.gz | ||
| sudo ln -sf wabt-1.0.37 wabt | ||
| /opt/wasi-sdk/bin/clang --version | ||
| /opt/wabt/bin/wasm-interp --version | ||
| echo "::notice::wasi-sdk-25 and wabt-1.0.37 installed on macos-14" | ||
| working-directory: /opt | ||
|
|
||
| #TODO: Add support for Windows | ||
| - name: Set up wasi-sdk and wabt on Windows | ||
| if: ${{ startsWith(inputs.os, 'windows') }} | ||
| shell: powershell | ||
| run: | | ||
| echo "::notice::Support for Windows is not implemented yet" | ||
| exit 1 | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.