-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (55 loc) · 1.57 KB
/
build-test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Basic build and test
on:
push:
paths-ignore:
- '**/*.md'
- '.github/dependabot.yml'
branches:
- pipeline
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- pipeline
paths-ignore:
- "**/*.md"
- ".github/dependabot.yml"
workflow_dispatch:
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
jvm-build-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java:
- '21'
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
cache: maven
- name: "Build and test JVM ${{ matrix.java }}"
run: ./mvnw -B clean verify -Dmaven.compiler.release=${{ matrix.java }}
native-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup GraalVM CE ${{ matrix.java }} distro
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm-community'
cache: 'maven'
native-image-job-reports: 'true'
native-image-pr-reports: 'true'
- name: Build test native (${{ matrix.java }})
run: ./mvnw -B clean verify -PnativeTest -Dmaven.compiler.release=${{ matrix.java }}