Skip to content

Commit

Permalink
fixup! fix(#4): generate reflect config in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
worm2fed committed Jul 18, 2024
1 parent 60fe956 commit 254a865
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:

- name: Generate reflection config
run: |
java -agentlib:native-image-agent=caller-filter-file=/home/runner/work/aidbox-sdk/aidbox-sdk/trace-filter.json,config-output-dir=/home/runner/work/aidbox-sdk/aidbox-sdk -jar ./aidbox-sdk.jar ./resources/schemas ./out
bash scripts/generate-reflection-config.sh ${{ github.workspace }} aidbox-sdk.jar
- name: Compile to native binary
run: |
Expand Down
18 changes: 11 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ pom.xml
pom.xml.asc
*.jar
*.class
/lib/
/classes/
/target/
/checkouts/
lib/
classes/
target/
out/
checkouts/
.lein-deps-sum
.lein-repl-history
.lein-plugins/
Expand All @@ -14,6 +15,9 @@ pom.xml.asc
.cpcache/
.DS_Store

/.lsp/
/.clj-kondo/
/.schemas/
.lsp/
.clj-kondo/
.schemas/

META/*
!META/.gitkeep
Empty file added META/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions scripts/generate-reflection-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

project_dir=$1
path_to_jar=$1/$2
native_image_agent_opts="caller-filter-file=$project_dir/trace-filter.json,config-output-dir=$project_dir/META"

java -agentlib:native-image-agent=$native_image_agent_opts -jar $path_to_jar $project_dir/resources/schemas $project_dir/out

0 comments on commit 254a865

Please sign in to comment.