Skip to content

Commit

Permalink
feat: Use musl for compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalourdio committed Feb 18, 2025
1 parent cc03b86 commit 31f0e18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
distribution: 'graalvm-community'
java-version: ${{ matrix.graalvm-version }}
cache: 'maven'
native-image-musl: true

- name: GraalVM Compile
run: ./mvnw clean -Pnative native:compile
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<buildArgs>
<buildArg>--static</buildArg>
<buildArg>--libc=musl</buildArg>
</buildArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 31f0e18

Please sign in to comment.