Skip to content

Shim vips library loading to fix Windows lookup, and allow multiple attempts #131

Shim vips library loading to fix Windows lookup, and allow multiple attempts

Shim vips library loading to fix Windows lookup, and allow multiple attempts #131

Workflow file for this run

name: Build and check
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 22
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.9
- name: Run checks
run: ./gradlew build check shadowJar
- name: Run samples
run: |
vips --version || (sudo apt update && sudo apt install libvips-dev)
./run_samples.sh
windows-sense-check:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 22
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.9
- name: Run samples
shell: pwsh
run: |
Invoke-WebRequest "https://github.com/libvips/build-win64-mxe/releases/download/v8.15.3/vips-dev-w64-all-8.15.3.zip" -OutFile "vips_w64.zip"
(Get-FileHash .\vips_w64.zip).Hash -eq "ed76b8c7d0fdb4d771d422c974f81307e7893859eadf308dbf7725cd812440fe"
Expand-Archive vips_w64.zip
$env:Path += ";$pwd\vips_w64\vips-dev-8.15\bin"
Write-Output $env:Path
Get-ChildItem .\vips_w64\vips-dev-8.15
.\gradlew.bat sample:clean sample:shadowJar
java -jar sample/build/libs/sample-all.jar