diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c47c4cf04..02180436f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ jobs: fail-fast: false matrix: java: [ 11, 17, 21, 23, 24-ea ] + mvnArgs: "" + include: + - java: 24-ea + mvnArgs: "-Dnet.bytebuddy.experimental=true" steps: - uses: actions/checkout@v4 @@ -25,12 +29,8 @@ jobs: java-version: ${{ matrix.java }} distribution: 'temurin' - - name: Build (Regular) - run: mvn -B clean verify - - - name: Build (EA bytebuddy.experimental) - if: ${{ failure() && endsWith(matrix.java, '-ea') }} - run: mvn -B clean verify -Dnet.bytebuddy.experimental=true + - name: Build + run: mvn -B clean verify ${{ mvnArgs }} - name: Archive Test Logs On Failure if: failure()