waforth/.github/actions/setup/action.yml

36 lines
1.3 KiB
YAML
Raw Normal View History

2022-05-07 09:03:03 +02:00
name: "Setup project"
runs:
using: "composite"
steps:
- uses: actions/setup-node@v2
with:
2022-05-23 21:37:02 +02:00
node-version: 17
2022-05-07 09:03:03 +02:00
cache: 'yarn'
2023-06-17 08:00:25 +02:00
# - if: runner.os == 'macOS'
# run: brew install wabt
# shell: bash
- if: runner.os == 'macOS'
2023-06-17 08:00:25 +02:00
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.31/wabt-1.0.31-macos-12.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
2022-11-12 17:28:25 +01:00
shell: bash
- if: runner.os == 'Linux'
run: |
2022-11-15 08:17:01 +01:00
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
2022-05-07 09:03:03 +02:00
shell: bash
- if: runner.os == 'Windows'
run: |
2022-11-15 08:17:01 +01:00
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
2022-11-13 19:14:21 +01:00
cp /c/tools/wabt/bin/* /c/Windows/system32
shell: bash
2022-05-07 09:03:03 +02:00
- run: yarnpkg --pure-lockfile
shell: bash