From 5c4983da251c9e6568167ccd45dc0951e8d573c6 Mon Sep 17 00:00:00 2001 From: Edgar Asatryan Date: Thu, 12 Dec 2024 01:09:35 +0400 Subject: [PATCH] ci: Matrix build. --- .github/workflows/build.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 978285a..a13ba2f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -12,17 +12,21 @@ on: jobs: build: name: Build + strategy: + matrix: + java-version: [ 8, 11, 17, 21, 23 ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: 8 + java-version: ${{ matrix.java-version }} cache: 'gradle' - name: Build run: ./gradlew build - uses: codecov/codecov-action@v5 + if: matrix.java-version == 8 with: verbose: true