Skip to content

Release the 17 line by tag, with notes for 17.1.0 and its README #764

Release the 17 line by tag, with notes for 17.1.0 and its README

Release the 17 line by tag, with notes for 17.1.0 and its README #764

Workflow file for this run

name: CI
on:
push:
branches:
- '*.X.X' # a release line is named after the Java version it is built for: 21.X.X
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The 17 line builds and tests on JDK 17 alone; 21.x is the line for JDK 21 and later. setup-java's
# problem matcher turns javac's warnings into annotations on the diff. GitHub keeps only the first ten
# warnings of a step, so the annotations are the first ten warnings the parallel build prints.
- name: Install JDK 17
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: temurin
java-version: '17'
problem-matcher: true
# Gradle's downloads come from the Actions cache rather than the network: the wrapper's distribution
# (services.gradle.org timed out and failed DNS on macos-15-intel, twice in a month) and the
# dependencies (Maven Central reset the connection on three runners and failed DNS on a fourth, all
# on 2026-10-19). Only builds of the default branch write the cache; pull requests read it. Two
# things stay out: the local build cache, left out on purpose for now, and the IDE the IntelliJ
# plugin's tests start, whose 852 MB zip and the 2.1 GB it unpacks to under transforms would take
# longer to restore than to download and fill much of the repository's 10 GB. One thing goes in besides
# the default `caches` and `notifications`: the downloads of the Gradle plugins' TestKit builds, the
# Android Gradle plugin and its dependencies above all. Those builds have a Gradle user home of their
# own, under build/tmp by default, which the cache did not reach: every job downloaded it all from
# Maven Central again, until Maven Central answered 429 Too Many Requests on 2026-11-28. -PtestkitDir
# puts that home at test-kit in this one. Choosing paths is a feature of the default, proprietary
# cache provider, bundled in the action and free for public repositories; the open-source one has none.
- name: Cache Gradle's downloads
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
with:
gradle-home-cache-includes: |
caches
notifications
test-kit/caches/modules-2
gradle-home-cache-excludes: |
caches/build-cache-1
caches/modules-2/files-2.1/com.jetbrains.intellij.idea
caches/*/transforms
- name: Build
run: ./gradlew check -PtestkitDir="$GRADLE_USER_HOME/test-kit"
- name: Publish Test Report
uses: mikepenz/action-junit-report@a16be3a69023e9bd7e748ede768b3282ea7b30ce # v6.7.1
if: ${{ !cancelled() }}
with:
report_paths: '**/build/test-results/test/*.xml'
annotate_only: true
job_summary: true