forked from bytecodealliance/wit-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
41 lines (38 loc) · 1.75 KB
/
Copy pathaction.yml
File metadata and controls
41 lines (38 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Install the wasi-sdk'
description: 'Install the wasi-sdk toolchain'
inputs:
version:
description: "Wasi-sdk version to install"
default: "34"
runs:
using: composite
steps:
- run: |
curl --retry 5 --retry-all-errors -L -o wasi-sdk.tar.gz https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{ inputs.version }}/wasi-sdk-${{ inputs.version }}.0-x86_64-linux.tar.gz
tar xzvf wasi-sdk.tar.gz
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-${{ inputs.version }}.0-x86_64-linux" >> $GITHUB_ENV
if: runner.os == 'Linux'
shell: bash
working-directory: ${{ runner.tool_cache }}
- run: |
curl --retry 5 --retry-all-errors -L -o wasi-sdk.tar.gz https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{ inputs.version }}/wasi-sdk-${{ inputs.version }}.0-arm64-macos.tar.gz
tar xzvf wasi-sdk.tar.gz
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-${{ inputs.version }}.0-arm64-macos" >> $GITHUB_ENV
if: runner.os == 'macOS'
shell: bash
working-directory: ${{ runner.tool_cache }}
- run: |
curl --retry 5 --retry-all-errors -L -o wasi-sdk.tar.gz https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${{ inputs.version }}/wasi-sdk-${{ inputs.version }}.0-x86_64-windows.tar.gz
tar xzvf wasi-sdk.tar.gz
echo "WASI_SDK_PATH=`pwd`/wasi-sdk-${{ inputs.version }}.0-x86_64-windows" >> $GITHUB_ENV
if: runner.os == 'Windows'
shell: bash
working-directory: ${{ runner.tool_cache }}
- name: Setup `wasm-tools`
uses: bytecodealliance/actions/wasm-tools/setup@v1
with:
version: "1.258.0"
- name: Setup `wasmtime`
uses: bytecodealliance/actions/wasmtime/setup@v1
with:
version: "48.0.1"