Skip to content

Commit

Permalink
add 32-bit CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
dloebl committed Jun 18, 2024
1 parent 4e532e4 commit 10760e0
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,34 @@ on:
- pull_request
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
- macos-12
- windows-2022
include:
- name: "Linux x64 (Ubuntu 22.04)"
os: ubuntu-22.04
config: {}
- name: "Linux 32-bit (Ubuntu 22.04)"
os: ubuntu-22.04
config: { cflags: "-m32"}
- name: "macOS 12"
os: macos-12
config: {}
- name: "Windows 2022"
os: windows-2022
config: {}
env:
CFLAGS: ${{ matrix.config.cflags }}
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 (ubuntu 32-bit)
if: contains(matrix.name, '32-bit')
run: sudo apt update && sudo apt install -y gcc-multilib
- name: Dependencies (macos)
if: contains(matrix.os, 'macos')
run: brew install gifsicle meson
Expand All @@ -33,7 +48,7 @@ jobs:
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')
if: contains(matrix.name, 'Linux x64')
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
Expand Down

0 comments on commit 10760e0

Please sign in to comment.