-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 1 KB
/
graalvm.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
name: GraalVM Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
java-version: [ '17' ]
distribution: [ 'graalvm-community' ]
fail-fast: false
name: ${{ matrix.os }} JDK ${{ matrix.java-version }}.${{ matrix.distribution }}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew build nativeCompile --scan --info --stacktrace