-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 981 Bytes
/
boot-kafka-sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: spring-boot-kafka-sample
on:
push:
paths:
- "kafka-spring-boot/boot-kafka-sample/**"
branches: [ main ]
pull_request:
paths:
- "kafka-spring-boot/boot-kafka-sample/**"
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "kafka-spring-boot/boot-kafka-sample"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
native-image-job-reports: 'true'
- name: Printing versions
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Build with Maven
run: ./mvnw -B verify spring-boot:build-image --file pom.xml