native builder plugin added #552
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Native CI | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
paths: | |
- '**/pom.xml' # Only trigger if any pom.xml file is modified | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- '**/pom.xml' # Only trigger if any pom.xml file is modified | |
permissions: | |
contents: 'write' | |
id-token: 'write' | |
packages: 'write' | |
deployments: 'write' | |
repository-projects: 'write' | |
pull-requests: 'write' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 120 | |
strategy: | |
matrix: | |
java: [23] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
version: 'latest' | |
java-version: ${{ matrix.java }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
distribution: 'graalvm' | |
- name: graalvm builds | |
run: | | |
mvn -ntp package -Pnative native:compile -DskipTests -f spring-boot-web/pom.xml | |
mvn -ntp package -Pnative native:compile -DskipTests -f spring-boot-webflux/pom.xml | |
mvn -ntp package -Pnative,native-image -Dpackaging=native-image -DskipTests -f quarkus/pom.xml | |
mvn -ntp package -Pnative,native-image -Dpackaging=native-image -DskipTests -f micronaut/pom.xml | |
mvn -ntp package -Pnative,native-image -Dpackaging=native-image -DskipTests -f ktor/pom.xml | |
mvn -ntp package -Pnative,native-image -Dpackaging=native-image -DskipTests -f helidon-se-netty/pom.xml | |
mvn -ntp package -Pnative,native-image -Dpackaging=native-image -DskipTests -f vertx/pom.xml | |
- uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
prerelease: true | |
title: Development Build | |
files: | | |
./quarkus/target/quarkus-demo-runner | |
./micronaut/target/micronaut-demo | |
./spring-boot-web/target/springboot-demo-web | |
./spring-boot-webflux/target/springboot-webflux-demo | |
./vertx/target/vertx-demo | |
./helidon-se-netty/target/helidon-quickstart-se | |
./ktor/target/ktor-demo |