From 3220c77d6aa744ed666772fa78c7998127c139ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20V=C6=B0=C6=A1ng?= Date: Thu, 4 Apr 2024 23:58:45 +0700 Subject: [PATCH] config and build aseprite via cmake --- .github/workflows/auto-build.yml | 20 ++++++++++++++++++-- main.py => download.py | 0 2 files changed, 18 insertions(+), 2 deletions(-) rename main.py => download.py (100%) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 79b20e7..0998bc4 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -13,11 +13,27 @@ jobs: - 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 & Build Aseprite + - 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: | - python main.py + 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 diff --git a/main.py b/download.py similarity index 100% rename from main.py rename to download.py