-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (45 loc) · 1.46 KB
/
action.yml
File metadata and controls
48 lines (45 loc) · 1.46 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
42
43
44
45
46
47
48
name: 'Install WASI SDK'
description: 'Install a WASI SDK toolchain for WebAssembly development'
inputs:
version:
description: 'WASI SDK version to install (e.g., "25", "24", "23")'
required: false
default: 'latest'
install-path:
description: 'Directory to install WASI SDK to'
required: false
default: ${{ runner.tool_cache }}/wasi-sdk
add-to-path:
description: 'Add WASI SDK bin directory to PATH'
required: false
default: 'true'
github-token:
description: 'GitHub token for API requests (avoids rate limiting)'
required: false
default: ${{ github.token }}
outputs:
wasi-sdk-path:
description: 'Path to the installed WASI SDK'
value: ${{ steps.install.outputs.wasi-sdk-path }}
wasi-sdk-version:
description: 'Version of WASI SDK that was installed'
value: ${{ steps.install.outputs.wasi-sdk-version }}
clang-path:
description: 'Path to the clang executable'
value: ${{ steps.install.outputs.clang-path }}
sysroot-path:
description: 'Path to the WASI sysroot'
value: ${{ steps.install.outputs.sysroot-path }}
runs:
using: 'composite'
steps:
- name: Install WASI SDK
id: install
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
run: |
$GITHUB_ACTION_PATH/install.py -v \
--version '${{ inputs.version }}' \
--install-dir '${{ inputs.install-path }}' \
${{ inputs.add-to-path == 'true' && '--add-to-path' || '' }}