Skip to content

Commit

Permalink
Add jlink version
Browse files Browse the repository at this point in the history
  • Loading branch information
olyagpl committed Jun 12, 2024
1 parent a50e261 commit 4a89fbb
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
- name: Build with Native Image Maven Plugin
run: |
mvn --no-transfer-progress -Pnative package
export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}"
echo "Interacting with LangChain4j Searchbot"
export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}"
echo "What is JavaDay Lviv?"
./target/searchbot "What is JavaDay Lviv?"
Expand All @@ -31,8 +30,21 @@ jobs:
-jar ./target/searchbot-1.0-jar-with-dependencies.jar \
-H:+AllowDeprecatedBuilderClassesOnImageClasspath \
-o ./target/searchbot-optimized
export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}"
echo "Interacting with LangChain4j Searchbot"
export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}"
echo "What is JavaDay Lviv?"
./target/searchbot "What is JavaDay Lviv?"
- name: Build with jlink
run: |
jlink \
--module-path ./target/searchbot-1.0-jar-with-dependencies.jar \
--strip-debug \
--compress zip-9 \
--no-header-files \
--no-man-pages \
--strip-java-debug-attributes \
--output ./target/searchbot-jlink
export OPENAI_API_KEY="${{ secrets.OPENAI_API_KEY }}"
echo "What is JavaDay Lviv?"
./target/searchbot "What is JavaDay Lviv?"
Expand Down

0 comments on commit 4a89fbb

Please sign in to comment.