summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2024-12-08 23:14:15 -0800
committerrcombs <rcombs@rcombs.me>2024-12-12 13:48:35 -0800
commitfcdbed6fa7909c618163e1aa2b25342c100db42b (patch)
tree9213d90684f12562a3bc7bcf97458ff6d8f4f94e
parent31b865b438b5ca2ba3843de24daf99e8f5c3594d (diff)
downloadlibass-fcdbed6fa7909c618163e1aa2b25342c100db42b.tar.bz2
libass-fcdbed6fa7909c618163e1aa2b25342c100db42b.tar.xz
ci: enable tests in meson builds
-rw-r--r--.github/workflows/meson.yml22
1 files changed, 21 insertions, 1 deletions
diff --git a/.github/workflows/meson.yml b/.github/workflows/meson.yml
index 07d2ad3d..8f0a9eb0 100644
--- a/.github/workflows/meson.yml
+++ b/.github/workflows/meson.yml
@@ -51,11 +51,20 @@ jobs:
run:
shell: ${{ matrix.config.shell || 'bash' }}
+ env:
+ ART_SAMPLES: ${{ github.workspace }}/ext_art-samples
+
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
+ - name: download test samples
+ uses: actions/checkout@v4
+ with:
+ repository: libass/libass-tests
+ path: ${{ env.ART_SAMPLES }}
+
- name: Setup MSys2
if: startsWith(matrix.config.os, 'windows')
uses: msys2/setup-msys2@v2
@@ -124,15 +133,26 @@ jobs:
meson wrap update-db
- name: Configure
- run: meson setup build ${{ matrix.config.args }} -Dbuildtype=${{ matrix.config.buildtype }}
+ run: meson setup build ${{ matrix.config.args }} -Dbuildtype=${{ matrix.config.buildtype }} -Dtest=enabled -Dcompare=enabled -Dprofile=enabled -Dfuzz=enabled '-Dart-samples=${{ env.ART_SAMPLES }}'
- name: Build
run: meson compile -C build
+ - name: Run tests
+ id: run-tests
+ if: matrix.config.skip_tests != 'yes'
+ env:
+ ART_REG_SKIP: ${{ matrix.config.art_reg_skip }}
+ run: meson test -C build
+
- name: Dump Meson Debug Info
if: failure()
run: cat build/meson-logs/meson-log.txt
+ - name: Dump Meson Test Debug Info
+ if: ${{ failure() && steps.run-tests.conclusion == 'failure' }}
+ run: cat build/meson-logs/testlog.txt
+
build-muon:
runs-on: ubuntu-latest
container: