config and build aseprite via cmake #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto build Aseprite | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
auto-build: | |
name: Auto build Aseprite for Windows x64 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Ninja | |
run: | | |
choco install ninja -y | |
- name: Install Python requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Download Aseprite | |
run: | | |
python download.py | |
- name: Setup MSVC Developer Command Prompt | |
uses: TheMrMilchmann/setup-msvc-dev@v3 | |
with: | |
arch: x64 | |
- name: Build Aseprite | |
run: | | |
mkdir build | |
cd build | |
cmake ../src/aseprite -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLAF_BACKEND=skia -DSKIA_DIR=../src/skia -DSKIA_LIBRARY_DIR=../src/skia/out/Release-x64 -DSKIA_LIBRARY=../src/skia/out/Release-x64/skia.lib | |
ninja aseprite |