ci/mingw: run meson tests

This commit is contained in:
Kacper Michajłow 2024-05-21 22:52:02 +02:00
parent bb078b8303
commit bec3f606cf
2 changed files with 12 additions and 3 deletions

View File

@ -73,15 +73,24 @@ jobs:
- name: Print meson log
if: ${{ failure() && steps.build.outcome == 'failure' }}
run: |
cat ./build/meson-logs/meson-log.txt
cat ./mingw_build/meson-logs/meson-log.txt
- name: Functional test
id: tests
run: |
cd artifact && wine ./mpv.com -v --no-config
env:
WINEDEBUG: '+loaddll'
- name: Run meson tests
id: tests
run: |
meson test -C mingw_build
- name: Print meson test log
if: ${{ failure() && steps.tests.outcome == 'failure' }}
run: |
cat ./mingw_build/meson-logs/testlog.txt
- uses: actions/upload-artifact@v4
with:
name: mpv-${{ matrix.target }}

View File

@ -296,7 +296,7 @@ meson setup $build --cross-file "$prefix_dir/crossfile" \
--werror \
-Dc_args="-Wno-error=deprecated -Wno-error=deprecated-declarations" \
--buildtype debugoptimized \
-Dlibmpv=true -Dlua=luajit \
-D{libmpv,tests}=true -Dlua=luajit \
-D{shaderc,spirv-cross,d3d11}=enabled
meson compile -C $build