waforth/.github/actions/setup/action.yml
2022-11-15 19:36:51 +01:00

32 lines
1.2 KiB
YAML

name: "Setup project"
runs:
using: "composite"
steps:
- uses: actions/setup-node@v2
with:
node-version: 17
cache: 'yarn'
- if: runner.os == 'macOS'
run: brew install wabt
shell: bash
- if: runner.os == 'Linux'
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.31/wabt-1.0.31-ubuntu.tar.gz | tar xvz -C /tmp
sudo mv /tmp/wabt-1.0.31/bin/* /usr/local/bin
sudo mv /tmp/wabt-1.0.31/include/* /usr/local/include
sudo mv /tmp/wabt-1.0.31/lib/*.a /usr/local/lib
sudo mv /tmp/wabt-1.0.31/share/wabt /usr/local/share
shell: bash
- if: runner.os == 'Windows'
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.31/wabt-1.0.31-windows.tar.gz | tar xvz -C /tmp
mv /tmp/wabt-1.0.31 /c/tools/wabt
cp /c/tools/wabt/bin/* /c/Windows/system32
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.31/wabt-1.0.31.tar.xz | tar xvJ -C /tmp
mkdir -p /c/tools/wabt/share/wabt
mv /tmp/wabt-1.0.31/wasm2c /c/tools/wabt/share/wabt
ls /c/tools/wabt/share/wabt/wasm2c
echo "Done"
shell: bash
- run: yarnpkg --pure-lockfile
shell: bash