Skip to content

Commit

Permalink
add native build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cl-a-us committed Oct 17, 2024
1 parent c9765aa commit e782b5d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/native_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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

0 comments on commit e782b5d

Please sign in to comment.