From 95f1707a1aa26a847dfdced24c939be3f6014f62 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 | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/native-image.yml b/.github/workflows/native-image.yml index caee938..ec7b219 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,21 @@ 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*