-
Notifications
You must be signed in to change notification settings - Fork 157
53 lines (53 loc) · 1.56 KB
/
native-image-build-static-images.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
name: native-image/build-static-images
on:
push:
paths:
- 'native-image/build-static-images/**'
- '.github/workflows/native-image-build-static-images.yml'
pull_request:
paths:
- 'native-image/build-static-images/**'
- '.github/workflows/native-image-build-static-images.yml'
schedule:
- cron: "0 0 1 * *" # run every month
workflow_dispatch:
permissions:
contents: read
jobs:
run-static:
name: Run fully static
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
java-version: ['21', '24-ea']
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: ${{ matrix.java-version }}
native-image-musl: 'true'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run fully static
run: |
cd native-image/build-static-images
javac EnvMap.java
native-image --static --libc=musl EnvMap -o static-envmap
run-mostly-static:
name: Run mostly-static
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '24-ea'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Run mostly-static
run: |
cd native-image/build-static-images
javac EnvMap.java
native-image -Ob --static-nolibc EnvMap -o mostly-static-envmap