Skip to content

GitHub release assets

Avrea caches files downloaded from GitHub releases, including some downloads made by mise, Homebrew, and other tools. Use your existing download commands.

Enable GitHub Release Asset Cache in organization or repository settings. It is off by default and works independently of Package Manager Cache. The setting applies to new jobs and refreshed hosted environments on hosts that support release-asset caching.

Downloads served by release-assets.githubusercontent.com are eligible. Other download hosts and GitHub source archives are not covered by this setting.

View activity under GitHub Release Assets. Turn off the setting to stop routing downloads through this cache.

Java-based download tools such as Coursier, Gradle and Maven plugins need no configuration on the JDKs preinstalled on Avrea runner images. Those JDKs trust the certificate authority this cache uses, and the runner sets no JVM options, so JAVA_TOOL_OPTIONS and gradle.properties stay yours.

A JDK that your job downloads does not trust that certificate authority. This happens when actions/setup-java or a build tool installs a distribution or version the image does not ship. Release downloads from such a JVM fail with PKIX path building failed. Either turn this cache off for the repository, or point the JVM at the runner's trust store, which holds the public certificate authorities as well:

RunnerJAVA_TOOL_OPTIONS
Linux-Djavax.net.ssl.trustStore=/etc/ssl/certs/adoptium/cacerts -Djavax.net.ssl.trustStorePassword=changeit
macOS-Djavax.net.ssl.trustStore=/opt/avrea/certs/cacerts -Djavax.net.ssl.trustStorePassword=changeit
Windows-Djavax.net.ssl.trustStore=NUL -Djavax.net.ssl.trustStoreType=Windows-ROOT
jobs:
build:
runs-on: avrea-ubuntu-latest
env:
JAVA_TOOL_OPTIONS: >-
-Djavax.net.ssl.trustStore=/etc/ssl/certs/adoptium/cacerts
-Djavax.net.ssl.trustStorePassword=changeit

Gradle does not always pass JAVA_TOOL_OPTIONS on to its daemon. For Gradle builds, also set the same values in gradle.properties, each with the systemProp. prefix, for example systemProp.javax.net.ssl.trustStore=/etc/ssl/certs/adoptium/cacerts.