Skip to content

Commit 63481ed

Browse files
committed
Add langchain4j-agentic snapshot build to CI
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
1 parent cad05c3 commit 63481ed

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/maven-verify.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will build a Java project with Maven
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3-
41
name: sdk-java Verify
52

63
on:
@@ -14,22 +11,42 @@ on:
1411
jobs:
1512
build:
1613
runs-on: ubuntu-latest
14+
1715
steps:
18-
- uses: actions/checkout@v4
16+
# 1. Checkout this repo
17+
- name: Checkout sdk-java
18+
uses: actions/checkout@v4
19+
20+
# 2. (Temporary) Checkout the langchain4j repo at agentic-module
21+
- name: Checkout langchain4j (agentic-module)
22+
uses: actions/checkout@v4
23+
with:
24+
repository: mariofusco/langchain4j
25+
ref: agentic-module
26+
path: langchain4j
1927

28+
# 3. Set up JDK 17 for both builds
2029
- name: Set up JDK 17
2130
uses: actions/setup-java@v4
2231
with:
2332
distribution: temurin
2433
java-version: 17
2534
cache: 'maven'
2635

36+
# 4. Build the external agentic module
37+
- name: Build langchain4j-agentic
38+
run: |
39+
make -C langchain4j build
40+
mvn -B -f langchain4j/langchain4j-agentic/pom.xml clean install -DskipTests
41+
42+
# 5. Verify the main sdk-java project, excluding the two agentic modules
2743
- name: Verify with Maven
2844
run: |
2945
mvn -B -f pom.xml clean install verify \
3046
-pl ",!fluent/agentic" -pl ",!experimental/agentic" \
3147
-am
3248
49+
# 6. Verify examples
3350
- name: Verify Examples with Maven
3451
run: |
3552
mvn -B -f examples/pom.xml clean install verify

0 commit comments

Comments
 (0)