github: Download WABT source in setup

This commit is contained in:
Remko Tronçon 2022-11-12 14:17:53 +01:00
parent 23a5ed58d2
commit 80e261d5af
2 changed files with 26 additions and 0 deletions

View file

@ -22,6 +22,13 @@ runs:
run: | 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 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 cp /c/tools/wabt-1.0.30/bin/* /c/Windows/system32
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30.tar.xz | tar xvJ -C /tmp
mv /tmp/wabt-1.0.30/wasm2c /c/tools/wasm2c
shell: bash
- if: runner.os == 'Linux' || runner.os == 'macOS'
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.30/wabt-1.0.30.tar.xz | tar xvJ -C /tmp
sudo mv /tmp/wabt-1.0.30/wasm2c /usr/local/wasm2c
shell: bash shell: bash
- run: yarnpkg --pure-lockfile - run: yarnpkg --pure-lockfile
shell: bash shell: bash

19
.github/workflows/build-waforthc.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Build waforthc
on:
# push:
# pull_request:
workflow_dispatch:
workflow_call:
jobs:
build-waforthc:
strategy:
matrix:
os: [macos-latest, ubuntu-18.04, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
# - run: make -C src/standalone install-deps package
# - run: make -C src/standalone check