Skip to content

ci(deps): bump actions/cache from 4 to 5 #116

ci(deps): bump actions/cache from 4 to 5

ci(deps): bump actions/cache from 4 to 5 #116

Workflow file for this run

# This workflow runs tests with a fresh Loom build from shipilev.net
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: Loom Build Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
# Run nightly at 2:00 AM UTC to detect breaking changes in Loom JDK
- cron: '0 2 * * *'
jobs:
test-with-loom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Download and setup Loom JDK
run: |
# Download the latest Loom build
wget -q https://builds.shipilev.net/openjdk-jdk-loom/openjdk-jdk-loom-linux-x86_64-server.tar.xz
# Extract the archive
tar -xf openjdk-jdk-loom-linux-x86_64-server.tar.xz
# Set JAVA_HOME for subsequent steps
echo "JAVA_HOME=$PWD/jdk" >> $GITHUB_ENV
echo "$PWD/jdk/bin" >> $GITHUB_PATH
- name: Verify Java version
run: |
java -version
echo "JAVA_HOME=$JAVA_HOME"
- name: Verify Java version in Maven
run: |
mvn --version
- name: Cache Maven packages
uses: actions/cache@v5
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B verify --file pom.xml -DargLine="--enable-preview" -P '!dev'