-
Notifications
You must be signed in to change notification settings - Fork 153
40 lines (40 loc) · 1.29 KB
/
native-image-logging-examples.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
name: native-image-logging-examples
on:
push:
paths:
- 'native-image-logging-examples/**'
- '.github/workflows/native-image-logging-examples.yml'
pull_request:
paths:
- 'native-image-logging-examples/**'
- '.github/workflows/native-image-logging-examples.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
pull-requests: write # for `native-image-pr-reports` option
jobs:
run:
name: Run 'native-image-logging-examples'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
version: 'dev'
java-version: '17'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
native-image-pr-reports: 'true'
- name: Run 'native-image-logging-examples'
run: |
cd native-image-logging-examples
javac LoggerBuildTimeInit.java
native-image LoggerBuildTimeInit --initialize-at-build-time=LoggerBuildTimeInit
./loggerbuildtimeinit
javac LoggerRunTimeInit.java
native-image LoggerRunTimeInit -H:IncludeResources="logging.properties"
./loggerruntimeinit