From 7d6b6fc4c54168a5f096526fe4c02bc70e987908 Mon Sep 17 00:00:00 2001 From: Pranjal Kumar Date: Mon, 16 Jun 2025 18:35:28 +0530 Subject: [PATCH] Add matrix build for Java versions --- .github/workflows/build-matrix.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build-matrix.yaml diff --git a/.github/workflows/build-matrix.yaml b/.github/workflows/build-matrix.yaml new file mode 100644 index 000000000..f4e386b37 --- /dev/null +++ b/.github/workflows/build-matrix.yaml @@ -0,0 +1,26 @@ +name: Java CI Matrix Build + +on: [push, pull_request] + +jobs: + build: + runs_on: ubuntu-latest + + strategy: + matrix: + java: [8, 11, 17] + + name: Build with Java ${{ matrix.java }} + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Java ${{ matrix.java }} + uses: actions/setup-java@4 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + + - name: Build with Gradle + run: ./gradlew build