diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index e352318fe..df5d2cfda 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -126,7 +126,17 @@ jobs: - name: Run tests of ${{ matrix.module }} with JDK ${{ matrix.java }} run: | - cd ${{ matrix.module }} && ../mvnw -B verify -Dci=true -Dno-format -ntp + cd ${{ matrix.module }} && ../mvnw -B verify -Dci=true -Dno-format -ntp + + # Build Llama3.java if JDK >= 22. See https://x.com/tjake/status/1849141171475399083?t=EpgVJCPLC17fCXio0FvnhA&s=19 for the reason + - name: Build Llama3-java extension + if: ${{ matrix.java >= 22 }} + run: | + ./mvnw -B clean install -DskipTests -Dno-format -ntp -f model-providers/llama3-java/pom.xml + + - name: Run tests of ${{ matrix.module }} with JDK ${{ matrix.java }} + run: | + cd ${{ matrix.module }} && ../mvnw -B verify -Dci=true -Dno-format -ntp native-tests: diff --git a/model-providers/pom.xml b/model-providers/pom.xml index 2b606a826..09462f5dd 100644 --- a/model-providers/pom.xml +++ b/model-providers/pom.xml @@ -38,6 +38,15 @@ jlama + + jdk22-plus + + [22,) + + + llama3-java + +