diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fe896e570..d3de5835a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/ci/build-mingw64.sh b/ci/build-mingw64.sh index d438d26c73..6ce05872d4 100755 --- a/ci/build-mingw64.sh +++ b/ci/build-mingw64.sh @@ -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