-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (43 loc) · 1.16 KB
/
main.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
name: Test demo
on:
push:
pull_request:
schedule:
- cron: "0 0 1 * *" # run every month
jobs:
maven:
name: Test Maven
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21.0.2'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Build and run with Maven
run: |
mvn --no-transfer-progress package
mvn --no-transfer-progress test
mvn --no-transfer-progress exec:exec
mvn --no-transfer-progress -Pnative package
./target/embedding
gradle:
name: Test Gradle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21.0.2'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Build and run with Gradle
run: |
gradle build
gradle run
gradle test
gradle nativeCompile
gradle nativeRun