Skip to content

Commit

Permalink
Use native-maven-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Thihup committed May 27, 2024
1 parent c9b5791 commit 91609f1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
- name: Example step using Maven plugin
run: |
cd dev.thihup.jvisualg.ide
mvn --no-transfer-progress -Pnative gluonfx:build
mvn --no-transfer-progress -Pnative package
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "dev.thihup.jvisualg.ide/target/gluonfx/x86_64-windows/JVisualG.exe"
artifacts: "dev.thihup.jvisualg.ide/target/JVisualG.exe"
replacesArtifacts: true
tag: JVisualg
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
21 changes: 16 additions & 5 deletions dev.thihup.jvisualg.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,24 @@
<build>
<plugins>
<plugin>
<groupId>com.gluonhq</groupId>
<artifactId>gluonfx-maven-plugin</artifactId>
<version>1.0.22</version>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>0.10.2</version>
<extensions>true</extensions>
<configuration>
<mainClass>${mainClass}</mainClass>
<enableSWRendering>true</enableSWRendering>
<buildArgs>
<buildArg>--no-fallback</buildArg>
</buildArgs>
</configuration>
<executions>
<execution>
<id>build-native</id>
<goals>
<goal>compile-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 91609f1

Please sign in to comment.