Update build.yml

This commit is contained in:
ackcen 2025-03-05 02:56:19 +08:00 committed by GitHub
parent fc63532fef
commit 1217eaf980
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,10 +6,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
build_type: [RelWithDebInfo, Debug]
ui: [gui, cli]
scripting: [lua, noscripts]
os: [windows-latest]
build_type: [RelWithDebInfo]
ui: [gui]
scripting: [lua]
exclude:
- build_type: Debug
ui: gui
@ -92,20 +92,10 @@ 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@v4
with:
name: aseprite
path:
D:/a/aseprite/bulid/bin/data
D:/a/aseprite/bulid/bin/aseprite.exe