File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 55 build-and-test :
66 runs-on : ubuntu-latest
77 steps :
8+ - name : Set variables based on OS and architecture for just dl-wasi-sdk
9+ run : |
10+ if [ "${{ runner.arch }}" = "X64" ]; then
11+ echo "WASI_ARCH=x86_64" >> $GITHUB_ENV
12+ else
13+ echo "WASI_ARCH=arm64" >> $GITHUB_ENV
14+ fi
15+ if [ "${{ runner.os }}" = "Windows" ]; then
16+ echo "WASI_OS=windows" >> $GITHUB_ENV
17+ else
18+ echo "WASI_OS=linux" >> $GITHUB_ENV
19+ fi
20+ echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV
21+ echo "WASI_VERSION=25" >> $GITHUB_ENV
822 - uses : actions/checkout@v4
923 - uses : actions-rs/toolchain@v1
1024 with :
1529 - uses : extractions/setup-just@v3
1630 - name : Install cargo-component
1731 run : cargo binstall cargo-component@0.21.1
32+ - name : Install wasm-tools
33+ run : cargo binstall wasm-tools@1.235.0
34+ - name : Install wit-bindgen
35+ run : cargo install wit-bindgen-cli@0.43.0
36+ - name : Install wasi-sdk
37+ run : |
38+ mkdir c_deps
39+ just dl-wasi-sdk
1840 - name : Build
1941 run : just build
2042 - name : Test
Original file line number Diff line number Diff line change 55 build :
66 runs-on : ubuntu-latest
77 steps :
8+ - name : Set variables based on OS and architecture for just dl-wasi-sdk
9+ run : |
10+ if [ "${{ runner.arch }}" = "X64" ]; then
11+ echo "WASI_ARCH=x86_64" >> $GITHUB_ENV
12+ else
13+ echo "WASI_ARCH=arm64" >> $GITHUB_ENV
14+ fi
15+ if [ "${{ runner.os }}" = "Windows" ]; then
16+ echo "WASI_OS=windows" >> $GITHUB_ENV
17+ else
18+ echo "WASI_OS=linux" >> $GITHUB_ENV
19+ fi
20+ echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV
21+ echo "WASI_VERSION=25" >> $GITHUB_ENV
822 - uses : actions/checkout@v4
923 - uses : actions-rs/toolchain@v1
1024 with :
1832 - uses : extractions/setup-just@v3
1933 - name : Install cargo-component
2034 run : cargo binstall cargo-component@0.21.1
35+ - name : Install wasm-tools
36+ run : cargo binstall wasm-tools@1.235.0
37+ - name : Install wit-bindgen
38+ run : cargo install wit-bindgen-cli@0.43.0
39+ - name : Install wasi-sdk
40+ run : |
41+ mkdir c_deps
42+ just dl-wasi-sdk
2143 - name : Install JavaScript dependencies
2244 run : npm ci
2345 - name : Build
You can’t perform that action at this time.
0 commit comments