Skip to content

Commit

Permalink
Define profiles fot LTS jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 24, 2024
1 parent cca7d97 commit 7caac2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Build with maven
run:
./mvnw -V -B --errors --activate-profiles ci,?jdk${{ matrix.java }} --no-transfer-progress help:evaluate -Dexpression=workspace.root.dir package -DskipTests
./mvnw -V -B --errors --activate-profiles ci,jdk${{ matrix.java }} --no-transfer-progress help:evaluate -Dexpression=workspace.root.dir package -DskipTests

test:
needs: compile
Expand Down Expand Up @@ -84,14 +84,14 @@ jobs:
- name: Build and test with maven
# Skip all static checks, they were already done in the compile jobs
run:
mvnw.cmd -B --errors --activate-profiles ci,?jdk${{ matrix.java }} --no-transfer-progress package
mvnw.cmd -B --errors --activate-profiles ci,jdk${{ matrix.java }} --no-transfer-progress package
shell: cmd
if: matrix.os == 'windows-latest'

- name: Build and test with maven
# Skip all static checks, they were already done in the compile jobs
run:
./mvnw -B --errors --activate-profiles ci,?jdk${{ matrix.java }} --no-transfer-progress package
./mvnw -B --errors --activate-profiles ci,jdk${{ matrix.java }} --no-transfer-progress package
if: matrix.os != 'windows-latest'

- name: Archive test results and logs
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@
</plugins>
</build>
</profile>
<profile>
<id>jdk11</id>
</profile>
<profile>
<id>jdk17</id>
</profile>
<profile>
<id>jdk21</id>
</profile>

<profile>
<id>ci</id>
Expand Down

0 comments on commit 7caac2f

Please sign in to comment.