Bump actions/checkout from 3 to 4 #385
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
- macos-12 | |
- windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Dependencies (ubuntu) | |
if: contains(matrix.os, 'ubuntu') | |
run: sudo apt update && sudo apt install -y gifsicle valgrind meson | |
- name: Dependencies (macos) | |
if: contains(matrix.os, 'macos') | |
run: brew install gifsicle meson | |
- name: Dependencies (windows) | |
if: contains(matrix.os, 'windows') | |
run: choco install gifsicle && pip3 install meson ninja | |
- name: Setup | |
run: meson setup build -Dtests=true -Dfuzzer=true | |
- name: Build | |
run: meson compile -C build | |
- name: Test | |
run: meson test -C build | |
- name: Verify GIF test output (gifsicle) | |
run: for f in build/*.gif; do gifsicle --no-ignore-errors --info $f || exit 1; done | |
shell: bash | |
- name: Valgrind | |
if: contains(matrix.os, 'ubuntu') | |
run: meson test -C build --list | grep -v zip | grep -v checksums | sed 's/^/"/;s/$/"/' | xargs meson test -C build/ --wrap "valgrind --memcheck:leak-check=full --memcheck:show-leak-kinds=definite --memcheck:error-exitcode=1" | |
shell: bash | |
- name: Valgrind output | |
if: contains(matrix.os, 'ubuntu') | |
run: cat build/meson-logs/testlog-valgrind.txt |