From a15f5c6b9af0a6daa25ec9f444a18f6ce688fb43 Mon Sep 17 00:00:00 2001 From: Andrii Demydenko Date: Wed, 17 Jul 2024 16:15:35 +0100 Subject: [PATCH] fixup! fix(#4): generate reflect config in CI --- .github/workflows/build.yaml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 88df9f7..c089afa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 # -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- # @@ -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