This is an automated email from the ASF dual-hosted git repository.
dashorst pushed a commit to branch wicket-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/wicket-9.x by this push:
new 9600e47608 Run CI on Ubuntu 24.04 and install only headless Chrome's
libraries
9600e47608 is described below
commit 9600e476087c35f4ab5b03336ba66560d2f52831
Author: Martijn Dashorst <[email protected]>
AuthorDate: Fri Oct 23 14:03:18 2026 +0200
Run CI on Ubuntu 24.04 and install only headless Chrome's libraries
ubuntu-latest moved to Ubuntu 26.04, which has no libgdk-pixbuf2.0-0
anymore, so the package step failed on every run before Maven started.
The workflow now pins ubuntu-24.04, as master and wicket-10.x do, and
installs the libraries and fonts headless Chrome needs in the form
master has used since 615af3ee95, without chromium-browser: that package
installs Chromium as a snap, which Puppeteer never uses because it
downloads its own browser. The Chromium of Puppeteer 19.7.5, the version
on this branch, starts and renders a page in an Ubuntu 24.04 container
with only these libraries installed.
Java 11 now comes from actions/setup-java, as on the other branches,
instead of from apt with JAVA_HOME set by hand.
Generated-by: Claude Code (Claude Opus 5.5)
---
.github/workflows/maven.yml | 50 ++++++++++++++++++++++++++++++++++++++-------
1 file changed, 43 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 8e4260753f..5311d9210e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -5,16 +5,54 @@ on: [push, pull_request]
jobs:
build:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- - name: Apt update
- run: sudo apt update
+ - name: Setup Temurin JDK
+ uses: actions/setup-java@v5
+ with:
+ distribution: 'temurin'
+ java-version: '11'
- - name: Install Java & Puppeteer's dependencies
- run: sudo apt-get install -y openjdk-11-jdk chromium-browser
fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst
fonts-freefont-ttf libasound2t64 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2
libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgdk-pixbuf2.0-0
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6
libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 l [...]
+ # Puppeteer brings its own Chrome; only Chrome's shared libraries are
needed here.
+ - name: Install headless Chrome's dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends \
+ ca-certificates \
+ fonts-freefont-ttf \
+ fonts-ipafont-gothic \
+ fonts-kacst \
+ fonts-liberation \
+ fonts-thai-tlwg \
+ fonts-wqy-zenhei \
+ libasound2t64 \
+ libatk-bridge2.0-0t64 \
+ libatk1.0-0t64 \
+ libc6 \
+ libcairo2 \
+ libcups2t64 \
+ libdbus-1-3 \
+ libdrm2 \
+ libexpat1 \
+ libgbm1 \
+ libglib2.0-0t64 \
+ libgtk-3-0t64 \
+ libnspr4 \
+ libnss3 \
+ libpango-1.0-0 \
+ libvulkan1 \
+ libx11-6 \
+ libxcb1 \
+ libxcomposite1 \
+ libxdamage1 \
+ libxext6 \
+ libxfixes3 \
+ libxkbcommon0 \
+ libxrandr2 \
+ xdg-utils
- name: Cache Maven packages
uses: actions/cache@v3
@@ -29,8 +67,6 @@ jobs:
wget --retry-connrefused --tries=5 --waitretry=5 --read-timeout=20
--timeout=15
https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz
export PATH=$PWD/apache-maven-${MAVEN_VERSION}/bin:$PATH
- export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
- export PATH=$JAVA_HOME/bin:$PATH
java -version
mvn -version
mvn clean verify -Pjs-test