From 094944d137ac8a7d9ae8accdf04aa8ce6197c8ff Mon Sep 17 00:00:00 2001 From: Luc Weinbrecht Date: Fri, 10 Nov 2023 13:50:35 +0100 Subject: [PATCH] testing custom windows build --- .github/workflows/native-image.yml | 19 ++++++++----------- README.md | 10 +++++----- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.github/workflows/native-image.yml b/.github/workflows/native-image.yml index caee938..7417cf8 100644 --- a/.github/workflows/native-image.yml +++ b/.github/workflows/native-image.yml @@ -1,12 +1,6 @@ name: GraalVM Native Image builds -on: - workflow_dispatch: - inputs: - TAG: - description: 'The tag to be built' - required: true - type: string +on: push jobs: build: @@ -14,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [macos-latest, windows-latest, ubuntu-latest] + os: [windows-latest] steps: - uses: actions/checkout@v4 @@ -24,11 +18,14 @@ jobs: distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' - - name: Build native-image - run: mvn -Pnative native:compile + name: Build native-image + - run: mvn -Pnative native:compile + - run: | + java -Dspring.aot.enabled=true -agentlib:native-image-agent=config-output-dir=./src/main/resources/META-INF/native-image -Doptimize.base-url="$BASE_URL" -Doptimize.report-id="$REPORT_ID" -Doptimize.client-id="$CLIENT_ID" -Doptimize.client-secret="$CLIENT_SECRET" -Dxes-mapping.base-path="target" -jar target/optimize-to-xes-*.jar + - run: mvn -Pnative native:compile - name: Upload binary uses: actions/upload-artifact@v3 with: name: optimize-to-xes-${{ matrix.os }} - path: target/optimize-to-xes* \ No newline at end of file + path: target/optimize-to-xes* diff --git a/README.md b/README.md index 4153c9c..3b154c3 100644 --- a/README.md +++ b/README.md @@ -102,18 +102,18 @@ your development journey! 🧙‍♂️✨🏗️ # Find all reflection usages: A native-image folder will be places in the root of the project. java -Dspring.aot.enabled=true \ - -agentlib:native-image-agent=config-output-dir=./native-image \ + -agentlib:native-image-agent=config-output-dir=./src/main/resources/META-INF/native-image \ -Doptimize.base-url='' \ - -Doptimize.reportId='.jar # Copy all the contents from the generated config folder to src/main/resources/META-INF/native-image cp -a ./native-image src/main/resources/META-INF/ -# Build the native image again with the extended information on the relfection +# Build the native image again with the extended information on the reflection ./mvnw clean native:compile -Pnative ```