Skip to content

Add WebP codec module with FFM-based platform backends and bundled ar… #7

Add WebP codec module with FFM-based platform backends and bundled ar…

Add WebP codec module with FFM-based platform backends and bundled ar… #7

Workflow file for this run

name: Test WebP
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
test-webp:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
name: Linux (libwebp)
install: sudo apt-get update && sudo apt-get install -y libwebp-dev
expected-decode: libwebp
expected-encode: libwebp
- os: ubuntu-latest
name: Linux (TwelveMonkeys)
install: sudo find /usr -name 'libwebp*.so*' -exec mv {} {}.disabled \;
expected-decode: Java ImageIO
- os: macos-latest
name: macOS (ImageIO)
expected-decode: macOS ImageIO
- os: windows-latest
name: Windows (WIC)
install: winget install --id 9PG2DK419DRG --accept-package-agreements --accept-source-agreements --source msstore --silent
expected-decode: Windows WIC
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 25
- name: Setup native libraries
if: matrix.install
run: ${{ matrix.install }}
- name: Make gradlew executable
if: runner.os != 'Windows'
run: chmod +x ./gradlew
- name: Run WebP tests
shell: bash
run: ./gradlew :webp:test -Dexpected.decode="${{ matrix.expected-decode }}" -Dexpected.encode="${{ matrix.expected-encode }}"