-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (50 loc) · 1.7 KB
/
auto-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Auto build Aseprite
on:
push:
branches: ["main"]
permissions:
contents: write
jobs:
auto-build:
name: Auto build Aseprite for Windows x64
runs-on: windows-2022
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
copy "C:/Windows/System32/libcrypto-1_1-x64.dll" ./bin
- name: Get version
id: get_version
run: |
$version = Get-Content version.txt
echo "version=$version" >> $env:GITHUB_OUTPUT
- name: Zip Aseprite
run: |
cd build/bin
7z a ../../Aseprite-Windows-x64-${{ steps.get_version.outputs.version }}.zip *
- name: GH Release
uses: softprops/[email protected]
with:
name: Aseprite-Windows-x64-${{ steps.get_version.outputs.version }}
tag_name: ${{ steps.get_version.outputs.version }}
files: |
Aseprite-Windows-x64-${{ steps.get_version.outputs.version }}.zip