From 7d2668e21cec451d8c566e9398c6982366358158 Mon Sep 17 00:00:00 2001 From: ian Date: Mon, 28 Oct 2024 13:26:10 +0000 Subject: [PATCH] test build on java 17 and 21 --- .github/workflows/jar-build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jar-build.yml b/.github/workflows/jar-build.yml index 6e3d19db..ebf281bf 100644 --- a/.github/workflows/jar-build.yml +++ b/.github/workflows/jar-build.yml @@ -5,17 +5,20 @@ on: [push] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '17', '21' ] permissions: id-token: write contents: read attestations: write steps: - uses: actions/checkout@v4 - - name: Set up JDK + - name: Set up JDK ${{ matrix.Java }} uses: actions/setup-java@v4 with: distribution: temurin - java-version: 17 + java-version: ${{ matrix.Java }} - name: Build with Ant run: ant -noinput -buildfile build.xml peergos_submodule_sync dist - name: Create jar attestation