Try to suppress dynamic info on Maven site to keep diffs small #316
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The MIT License | |
# | |
# Copyright 2005-2006 The Codehaus. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in | |
# the Software without restriction, including without limitation the rights to | |
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
# of the Software, and to permit persons to whom the Software is furnished to do | |
# so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all | |
# copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
# SOFTWARE. | |
# | |
name: Java CI | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- '*' | |
- '!gh-pages' | |
pull_request: | |
branches: | |
- '*' | |
- '!gh-pages' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
javaVersion: [ 11 ] | |
javaDist: [ temurin ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set Git options | |
# Check out as-is, commit Unix-style line endings | |
run: git config --global core.autocrlf input | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up cache for ~./m2/repository | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/dev/aspectj/aspectj-maven-plugin | |
key: maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}-${{ matrix.javaDist }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}-${{ matrix.javaDist }}- | |
maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}- | |
maven-${{ matrix.os }}- | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.javaVersion }} | |
distribution: ${{ matrix.javaDist }} | |
- name: Build with Maven | |
run: mvn --show-version --errors --batch-mode "-Dinvoker.streamLogsOnFailures=true" clean verify | |
site: | |
needs: build | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
javaVersion: [ 11 ] | |
javaDist: [ temurin ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set Git options | |
# Check out as-is, commit Unix-style line endings | |
run: git config --global core.autocrlf input | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up cache for ~./m2/repository | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/dev/aspectj/aspectj-maven-plugin | |
key: maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}-${{ matrix.javaDist }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}-${{ matrix.javaDist }}- | |
maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}- | |
maven-${{ matrix.os }}- | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.javaVersion }} | |
distribution: ${{ matrix.javaDist }} | |
- name: Build with Maven | |
run: mvn --show-version --errors --batch-mode "-Dinvoker.streamLogsOnFailures=true" site | |
build-all: | |
needs: build | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macOS-latest ] | |
javaVersion: [ 8, 11, 17, 21 ] | |
javaDist: [ temurin, zulu, adopt-openj9 ] | |
exclude: | |
# We built that already in 'build' | |
- os: ubuntu-latest | |
javaVersion: 11 | |
javaDist: temurin | |
# Save some cloud computing resources | |
- os: windows-latest | |
javaDist: zulu | |
- os: windows-latest | |
javaDist: adopt-openj9 | |
- os: macOS-latest | |
javaDist: zulu | |
- os: macOS-latest | |
javaDist: adopt-openj9 | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set Git options | |
# Check out as-is, commit Unix-style line endings | |
run: git config --global core.autocrlf input | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up cache for ~./m2/repository | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/dev/aspectj/aspectj-maven-plugin | |
key: maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}-${{ matrix.javaDist }}-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}-${{ matrix.javaDist }}- | |
maven-${{ matrix.os }}-java-${{ matrix.javaVersion }}- | |
maven-${{ matrix.os }}- | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.javaVersion }} | |
distribution: ${{ matrix.javaDist }} | |
- name: Build with Maven | |
run: mvn --show-version --errors --batch-mode "-Dinvoker.streamLogsOnFailures=true" clean verify |