gradle.yml workflow: install JDK 21 and 22-ea #73
Workflow file for this run
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
name: Gradle Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
distribution: ['temurin'] | |
fail-fast: false | |
name: ${{ matrix.os }} JDK 22 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.distribution }} | |
# Setup JDK 21 & JDK 22 to make JDK 22 available to the Gradle Java Toolchains feature | |
# When installing multiple JDKs, the last JDK installed is the default and will be used to run Gradle itself | |
java-version: | | |
22-ea | |
21 | |
- name: Cache Gradle packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Build with Gradle | |
run: ./gradlew build -x test # Skip tests because they will fail without libsecp256k1 installed. |