Skip to content

Merge pull request #28 from viadee/dependabot/github_actions/docker/s… #12

Merge pull request #28 from viadee/dependabot/github_actions/docker/s…

Merge pull request #28 from viadee/dependabot/github_actions/docker/s… #12

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: Java CI Native Build with Maven
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "graalvm" # See 'Supported distributions' for available options
cache: 'maven'
- name: Maven native build
run: mvn package -Pnative native:compile
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: native-build
path: target/k8s-demo-app
retention-days: 5