Skip to content

Prevent negative layout size #1222

Prevent negative layout size

Prevent negative layout size #1222

Workflow file for this run

name: Build JS
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: Checkout Rive Renderer Repo
uses: actions/checkout@v3
with:
submodules: true
repository: rive-app/rive-renderer
token: ${{ secrets.PAT_GITHUB }}
path: ./wasm/submodules/rive-renderer
ref: main
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
with:
version: 3.1.43
actions-cache-folder: "emsdk-cache"
- name: Configure venv
run: |
python3 -m venv .venv
source .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install premake
run: |
wget -q https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz
tar -xf premake-5.0.0-beta2-linux.tar.gz
sudo chmod a+x premake5
sudo mv premake5 /usr/local/bin
pip3 install ply
- name: Install modules
run: cd js && npm install
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Build
env:
PAT_GITHUB: ${{ secrets.PAT_GITHUB }}
run: cd js && ./build.sh
- name: Run tests
run: cd js && npm test