2022-04-13 17:02:46 +02:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-04-24 20:02:49 +02:00
|
|
|
node-version: 16
|
2022-04-13 17:02:46 +02:00
|
|
|
cache: 'yarn'
|
2022-04-24 20:02:49 +02:00
|
|
|
# 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-04-25 21:26:26 +02:00
|
|
|
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.27/wabt-1.0.27-ubuntu.tar.gz | tar xvz -C /tmp
|
|
|
|
sudo mv /tmp/wabt-1.0.27/bin/* /usr/local/bin
|
2022-04-13 17:02:46 +02:00
|
|
|
- run: yarnpkg --pure-lockfile
|
|
|
|
- run: yarnpkg build
|
2022-05-05 21:16:24 +02:00
|
|
|
- run: yarnpkg prepare
|
2022-04-13 17:02:46 +02:00
|
|
|
- run: yarnpkg lint
|
|
|
|
- run: yarnpkg test --coverage
|