Skip to content

Update build_rive.sh #826

Update build_rive.sh

Update build_rive.sh #826

Workflow file for this run

name: Tests
on:
push:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential uuid-dev
- name: Install
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
- name: Build
run: |
./build/build_rive.sh --file=premake5_v2.lua --with_rive_text --with_rive_layout Debug
./build/build_rive.sh --file=premake5_v2.lua --with_rive_text --with_rive_layout Release
- name: Tests
run: |
cd tests/unit_tests
./test.sh
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Build Rive
shell: pwsh
run: |
./build/build_rive.ps1 release
- name: Tests
run: |
cd tests/unit_tests
./test.sh
build-macos:
runs-on: macOS-latest
strategy:
matrix:
platform: [macOS]
steps:
- uses: actions/checkout@v3
- name: Install
run: |
wget -q https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-macosx.tar.gz
tar -xf premake-5.0.0-beta2-macosx.tar.gz
sudo chmod a+x premake5
sudo mv premake5 /usr/local/bin
- name: Build
run: |
./build/build_rive.sh --file=premake5_v2.lua --with_rive_text --with_rive_layout Debug
./build/build_rive.sh --file=premake5_v2.lua --with_rive_text --with_rive_layout Release
- name: Build glfw
working-directory: skia/dependencies/
run: ./make_glfw.sh
- name: Tests
if: matrix.platform == 'macOS'
run: |
echo Testing for ${{matrix.platform}}
cd tests/unit_tests
./test.sh
- name: Tess Tests
if: matrix.platform == 'macOS'
run: |
echo Testing for ${{matrix.platform}}
cd tess/build/macosx
./build_tess.sh test