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 17, 2024
1 parent 6e42ad1 commit a15f5c6
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,11 @@ jobs:
run: |
clojure -T:build uberjar :jar-name aidbox-sdk
- name: Generate reflection config
run: >-
java -agentlib:native-image-agent=
caller-filter-file=./trace-filter.json,
config-output-dir=.
-jar ./target/aidbox-sdk.jar
./resources/schemas
/dev/null
- name: Upload jar artifact
uses: actions/upload-artifact@v4
with:
name: build-jar
path: |
target/aidbox-sdk.jar
reflect-config.json
path: target/aidbox-sdk.jar

# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- #

Expand Down Expand Up @@ -95,6 +84,13 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: "true"

- name: Generate reflection config
run: >-
java -agentlib:native-image-agent=
caller-filter-file=./trace-filter.json,
config-output-dir=.
-jar aidbox-sdk.jar ./resources/schemas /dev/null
- name: Compile to native binary
run: |
mv aidbox-sdk.jar source.jar
Expand Down

0 comments on commit a15f5c6

Please sign in to comment.