Skip to content

Commit

Permalink
Use graal to build native image and do not build it in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal committed Sep 30, 2024
1 parent f23f72b commit e2ef27e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ jobs:
- name: Checkout Code with Ref '${{ github.ref }}'
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up GraalVM 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
distribution: 'graalvm'
cache: 'maven'

- name: Workaround jackson-coreutils
Expand All @@ -223,14 +223,8 @@ jobs:
mkdir -p /tmp/coreutils-workaround
( cd /tmp/coreutils-workaround && mvn dependency:get -DremoteRepositories=https://repo1.maven.org/maven2 -Dartifact=com.github.java-json-tools:jackson-coreutils:2.0 )
- name: Build Application
run: ./mvnw clean package -pl app,distro/docker -am -Pprod -DskipTests=true -DskipCommitIdPlugin=false -Dmaven.wagon.httpconnectionManager.maxTotal=30 -Dmaven.wagon.http.retryHandler.count=5 --no-transfer-progress

- name: Build Native executables
env:
SKIP_TESTS: "true"
run: |
./mvnw package --no-transfer-progress -Pnative -Dquarkus.native.container-build=true -Pprod -DskipTests=true
- name: Build Application Native
run: ./mvnw clean package -pl app,distro/docker -am -Pprod -Pnative -DskipTests=true -DskipCommitIdPlugin=false -Dmaven.wagon.httpconnectionManager.maxTotal=30 -Dmaven.wagon.http.retryHandler.count=5 --no-transfer-progress

- name: Build and Push Temporary image for testing
env:
Expand Down

0 comments on commit e2ef27e

Please sign in to comment.