This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new fc5598415b Build the site in CI on Linux only (#13719)
fc5598415b is described below
commit fc5598415bb5c270f1e153d0ba05c540f8c0e9c9
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Oct 26 11:41:44 2026 +0100
Build the site in CI on Linux only (#13719)
The site does not depend on the operating system; building it on macOS and
Windows too cost about 61 runner-minutes per build. Every JDK still builds
it, since Javadoc output changes with the JDK.
---
.github/workflows/maven.yml | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index d52ac54824..fce24b528d 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -167,18 +167,11 @@ jobs:
cache-jdk: true
cache-read-only: ${{ github.event_name == 'pull_request' }}
- - name: Install Graphviz (MacOS)
- if: runner.os == 'macOS'
- run: brew install graphviz
-
- - name: Install Graphviz (Ubuntu)
+ - name: Install Graphviz
+ # the site, which needs it for diagrams, is built on Linux only
if: runner.os == 'Linux'
run: sudo apt-get install graphviz libgvplugin-neato-layout8
- - name: Install Graphviz (Windows)
- if: runner.os == 'Windows'
- run: choco install graphviz
-
- name: Checkout maven
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #
v7.0.1
with:
@@ -235,6 +228,8 @@ jobs:
run: mvn verify -Papache-release -Dgpg.skip=true -e -B -V
- name: Build site with downloaded Maven
+ # one OS covers the site; every JDK still builds it, since Javadoc
changes with the JDK
+ if: runner.os == 'Linux'
shell: bash
run: mvn site -e -B -V -Preporting