Skip to content

New API to convert Images from and to arrays #121

New API to convert Images from and to arrays

New API to convert Images from and to arrays #121

Workflow file for this run

name: Regression tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest]
java-version: [17, 21, 22]
java-distro: [temurin, zulu]
# Gradle fails to detect JDK on GitHub CI on Windows when code asks for 17 and 21+ is
# installed. Revisit this when we bump the whole library from 17 to 21.
exclude:
- os: windows-latest
java-version: 21
- os: windows-latest
java-version: 22
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.java-distro }}
- name: Configure macOS font rendering
if: ${{ runner.os == 'macOS' }}
# For some reason, GitHub's macOS image has this enabled. ?!??
run: defaults write -g CGFontRenderingFontSmoothingDisabled 0
- name: Build and run tests
run: ./gradlew test -i --console=plain --no-daemon
env:
FAIL_ON_MISSING_IMAGE_COMPARISON: 1
- name: Upload image comparisons (on failure only)
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: imageComparisons
path: test/imageComparisons/