mirror of
https://github.com/remko/waforth
synced 2024-12-28 10:00:06 +01:00
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
name: "Setup project"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 17
|
|
cache: 'yarn'
|
|
- if: runner.os == 'macOS'
|
|
run: brew install wabt
|
|
shell: bash
|
|
- if: runner.os == 'Linux'
|
|
run: sudo apt-get install libboost-dev libboost-filesystem-dev libboost-program-options-dev
|
|
shell: bash
|
|
- 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: |
|
|
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
|
|
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
|
|
- run: yarnpkg --pure-lockfile
|
|
shell: bash
|