From b026f460a61a3e05d54f69f6f800d37c2af8fad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Thu, 6 Oct 2022 21:34:30 +0200 Subject: [PATCH] github: Split setup action in separate steps per runner --- .github/actions/setup/action.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 75157c1..045b73b 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -6,17 +6,20 @@ runs: with: node-version: 17 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). # - run: sudo apt-get install wabt - - run: | - if [ "$RUNNER_OS" == "Linux" ]; then - 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 - else - brew install wabt - fi + - 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 shell: bash + - if: runner.os == 'Windows' + run: echo "Not supported yet" + shell: cmd - run: yarnpkg --pure-lockfile shell: bash