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

21 lines
633 B
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'
# We depend on a more recent version, not available in current Ubuntu (20.04). Should be available in 22.04
# - run: sudo apt-get install wabt
- run: |
2022-05-26 09:26:34 +02:00
if [ "$RUNNER_OS" == "Linux" ]; then
2022-05-31 19:46:02 +02:00
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.29/wabt-1.0.29-ubuntu.tar.gz | tar xvz -C /tmp
sudo mv /tmp/wabt-1.0.29/bin/* /usr/local/bin
2022-05-26 09:26:34 +02:00
else
brew install wabt
fi
2022-05-07 09:03:03 +02:00
shell: bash
- run: yarnpkg --pure-lockfile
shell: bash