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'
|
2022-10-06 21:34:30 +02:00
|
|
|
- if: runner.os == 'macOS'
|
|
|
|
run: brew install wabt
|
|
|
|
shell: bash
|
2022-10-06 21:15:06 +02:00
|
|
|
# We depend on a more recent version, not available in current Ubuntu (20.04).
|
2022-05-07 09:03:03 +02:00
|
|
|
# - run: sudo apt-get install wabt
|
2022-10-06 21:34:30 +02:00
|
|
|
- if: runner.os == 'Linux'
|
|
|
|
run: |
|
|
|
|
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30-ubuntu.tar.gz | tar xvz -C /tmp
|
|
|
|
sudo mv /tmp/wabt-1.0.30/bin/* /usr/local/bin
|
|
|
|
sudo mv /tmp/wabt-1.0.30/include/* /usr/local/include
|
|
|
|
sudo mv /tmp/wabt-1.0.30/lib/*.a /usr/local/lib
|
2022-05-07 09:03:03 +02:00
|
|
|
shell: bash
|
2022-10-06 21:34:30 +02:00
|
|
|
- if: runner.os == 'Windows'
|
2022-10-06 21:34:30 +02:00
|
|
|
run: |
|
|
|
|
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30-windows.tar.gz | tar xvz -C /c/tools
|
|
|
|
cp /c/tools/wabt-1.0.30/bin/* /c/Windows/system32
|
|
|
|
shell: bash
|
2022-05-07 09:03:03 +02:00
|
|
|
- run: yarnpkg --pure-lockfile
|
|
|
|
shell: bash
|