update: added support for IMU and Lottie JSON
This commit is contained in:
88
components/thorvg-main/.github/workflows/build_macos.yml
vendored
Normal file
88
components/thorvg-main/.github/workflows/build_macos.yml
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
name: macOS
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Unbreak Python in GitHub Actions
|
||||
run: |
|
||||
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
|
||||
sudo rm -rf /Library/Frameworks/Python.framework/
|
||||
brew install --force python3 && brew unlink python3 && brew link --overwrite python3
|
||||
|
||||
- name: Install Packages
|
||||
run: |
|
||||
export HOMEBREW_NO_INSTALL_FROM_API=1
|
||||
brew update
|
||||
brew install meson sdl2
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
meson setup build -Dlog=true -Dloaders=all -Dsavers=all -Dbindings=capi -Dtools=all -Dextra="lottie_exp"
|
||||
ninja -C build install
|
||||
|
||||
compact_test:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Unbreak Python in GitHub Actions
|
||||
run: |
|
||||
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
|
||||
sudo rm -rf /Library/Frameworks/Python.framework/
|
||||
brew install --force python3 && brew unlink python3 && brew link --overwrite python3
|
||||
|
||||
- name: Install Packages
|
||||
run: |
|
||||
brew update
|
||||
brew install meson
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
meson setup build -Dlog=true -Dloaders=all -Dsavers=all -Dstatic=true -Dthreads=false -Dextra="lottie_exp"
|
||||
ninja -C build install
|
||||
|
||||
unit_test:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Unbreak Python in GitHub Actions
|
||||
run: |
|
||||
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
|
||||
sudo rm -rf /Library/Frameworks/Python.framework/
|
||||
brew install --force python3 && brew unlink python3 && brew link --overwrite python3
|
||||
|
||||
- name: Install Packages
|
||||
run: |
|
||||
brew update
|
||||
brew install meson
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
meson setup build -Dloaders=all -Dsavers=all -Dbindings=capi -Dtests=true -Dextra="lottie_exp" --errorlogs
|
||||
ninja -C build install test
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: UnitTestReport
|
||||
path: build/meson-logs/testlog.txt
|
||||
Reference in New Issue
Block a user