mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Update build.yml
This commit is contained in:
parent
fc63532fef
commit
ec9be1e244
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
@ -6,17 +6,13 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest, macos-latest, ubuntu-latest]
|
||||
build_type: [RelWithDebInfo, Debug]
|
||||
ui: [gui, cli]
|
||||
scripting: [lua, noscripts]
|
||||
exclude:
|
||||
- build_type: Debug
|
||||
ui: gui
|
||||
- build_type: RelWithDebInfo
|
||||
ui: cli
|
||||
- build_type: RelWithDebInfo
|
||||
scripting: noscripts
|
||||
os: [windows-latest]
|
||||
build_type: [Release]
|
||||
enable_ui: [on]
|
||||
include:
|
||||
- os: windows-latest
|
||||
build_type: Release
|
||||
enable_ui: on
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@ -60,6 +56,16 @@ jobs:
|
||||
else
|
||||
export enable_ccache=on
|
||||
fi
|
||||
curl -L https://github.com/blueloveTH/aseprite/releases/download/v0.01/skia.zip --output skia.zip
|
||||
7z x skia.zip
|
||||
cmake -S . -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
||||
-DENABLE_UI=${{ matrix.enable_ui }} \
|
||||
-DENABLE_CCACHE=$enable_ccache \
|
||||
-DLAF_BACKEND=skia \
|
||||
-DSKIA_DIR=./skia \
|
||||
-DSKIA_LIBRARY_DIR=./skia/out/Release-x64 \
|
||||
-DSKIA_LIBRARY=./skia/out/Release-x64/skia.lib
|
||||
|
||||
if [[ "${{ matrix.ui }}" == "gui" ]] ; then
|
||||
export laf_backend=skia
|
||||
@ -92,20 +98,12 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
cd build && ninja
|
||||
- name: Running C++ Tests
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ runner.os }}" == "Linux" ]] ; then
|
||||
export XVFB=xvfb-run
|
||||
fi
|
||||
cd build && $XVFB ctest --output-on-failure
|
||||
- name: Running CLI Tests
|
||||
if: ${{ matrix.scripting == 'lua' }}
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ runner.os }}" == "Linux" ]] ; then
|
||||
export XVFB=xvfb-run
|
||||
fi
|
||||
export ASEPRITE=$PWD/build/bin/aseprite
|
||||
cd tests
|
||||
$XVFB bash run-tests.sh
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: aseprite
|
||||
path: |
|
||||
D:/a/aseprite/aseprite/build/bin/data
|
||||
D:/a/aseprite/aseprite/build/bin/aseprite.exe
|
||||
|
Loading…
x
Reference in New Issue
Block a user