Skip to content

Commit

Permalink
Add native-image test gitflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Oct 30, 2023
1 parent e6dd98a commit 80ec89c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/native-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: native image build

on:
workflow_dispatch:
schedule:
- cron: '40 1 1 1 6'

jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: write
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
cache: 'maven'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Versions
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Build with Maven
run: |
mvn clean install -DskipTests
cd test-native-image
mvn clean package -Pnative
./target/test-native-image

0 comments on commit 80ec89c

Please sign in to comment.