Skip to content

Fix window resizing on macOS by considering the current screen scale factor (fixes #79) #101

Fix window resizing on macOS by considering the current screen scale factor (fixes #79)

Fix window resizing on macOS by considering the current screen scale factor (fixes #79) #101

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- name: Update Package Information
run: sudo apt-get update
- name: Install Dependencies
run: sudo apt-get install -y git openjdk-8-jdk xvfb mesa*
- uses: actions/checkout@v4
- name: Build with Maven
run: |
export XVFB_WHD="1920x1080x24"
export DISPLAY=":99"
export GALLIUM_DRIVER="llvmpipe"
export LIBGL_ALWAYS_SOFTWARE="1"
# Start Xvfb
echo "Starting Xvfb"
Xvfb :99 -ac -screen 0 "$XVFB_WHD" -nolisten tcp +extension GLX +render -noreset &
Xvfb_pid="$!"
echo "Waiting for Xvfb (PID: $Xvfb_pid) to be ready..."
while ! xdpyinfo -display "${DISPLAY}" > /dev/null 2>&1; do
sleep 0.1
done
echo "Xvfb is running."
./mvnw -B test
- name: Upload Images
uses: actions/upload-artifact@v4
with:
name: images-linux
path: 'target/*.png'
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- name: Download Mesa
uses: carlosperate/download-file-action@v2
with:
file-url: 'https://downloads.fdossena.com/geth.php?r=mesa64-latest'
file-name: 'mesa64-latest.7z'
location: '.'
- name: Overwrite opengl32.dll with Mesa
uses: DuckSoft/[email protected]
with:
pathSource: mesa64-latest.7z
pathTarget: C:\WINDOWS\SYSTEM32\
- name: Build with Maven
run: ./mvnw -B test
- name: Upload Images
uses: actions/upload-artifact@v4
with:
name: images-windows
path: 'target/*.png'
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'zulu'
- name: Build with Maven
run: ./mvnw -B test
- name: Upload Images
uses: actions/upload-artifact@v4
with:
name: images-macos
path: 'target/*.png'