mirror of
https://github.com/remko/waforth
synced 2024-12-27 09:59:29 +01:00
github: Split setup action in separate steps per runner
This commit is contained in:
parent
373b274bef
commit
b026f460a6
1 changed files with 12 additions and 9 deletions
21
.github/actions/setup/action.yml
vendored
21
.github/actions/setup/action.yml
vendored
|
@ -6,17 +6,20 @@ runs:
|
||||||
with:
|
with:
|
||||||
node-version: 17
|
node-version: 17
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
- if: runner.os == 'macOS'
|
||||||
|
run: brew install wabt
|
||||||
|
shell: bash
|
||||||
# We depend on a more recent version, not available in current Ubuntu (20.04).
|
# We depend on a more recent version, not available in current Ubuntu (20.04).
|
||||||
# - run: sudo apt-get install wabt
|
# - run: sudo apt-get install wabt
|
||||||
- run: |
|
- if: runner.os == 'Linux'
|
||||||
if [ "$RUNNER_OS" == "Linux" ]; then
|
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
|
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/bin/* /usr/local/bin
|
||||||
sudo mv /tmp/wabt-1.0.30/include/* /usr/local/include
|
sudo mv /tmp/wabt-1.0.30/include/* /usr/local/include
|
||||||
sudo mv /tmp/wabt-1.0.30/lib/*.a /usr/local/lib
|
sudo mv /tmp/wabt-1.0.30/lib/*.a /usr/local/lib
|
||||||
else
|
|
||||||
brew install wabt
|
|
||||||
fi
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- if: runner.os == 'Windows'
|
||||||
|
run: echo "Not supported yet"
|
||||||
|
shell: cmd
|
||||||
- run: yarnpkg --pure-lockfile
|
- run: yarnpkg --pure-lockfile
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue