From 51c7955114c29575f9ba8b6e83edce20b575e331 Mon Sep 17 00:00:00 2001 From: Sina Madani Date: Wed, 26 Jun 2024 14:45:40 +0100 Subject: [PATCH] ci: Build-only Java 8 job --- .github/workflows/build.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe7f599..be42122 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,26 @@ permissions: statuses: write jobs: - build: + compile: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + java: [8, 11] + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Checkout the repo + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: ${{ matrix.java }} + cache: maven + - name: Compile with Maven + run: mvn -e --batch-mode compile + + verify: runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -35,7 +54,7 @@ jobs: distribution: 'corretto' java-version: ${{ matrix.java }} cache: maven - - name: Build with Maven + - name: Test with Maven run: mvn -e --batch-mode clean verify - name: Run Codecov uses: codecov/codecov-action@v4