File tree Expand file tree Collapse file tree 7 files changed +50
-171
lines changed
native-image/build-static-images Expand file tree Collapse file tree 7 files changed +50
-171
lines changed Original file line number Diff line number Diff line change
1
+ name : native-image/build-static-images
2
+ on :
3
+ push :
4
+ paths :
5
+ - ' native-image/build-static-images/**'
6
+ - ' .github/workflows/native-image-build-static-images.yml'
7
+ pull_request :
8
+ paths :
9
+ - ' native-image/build-static-images/**'
10
+ - ' .github/workflows/native-image-build-static-images.yml'
11
+ schedule :
12
+ - cron : " 0 0 1 * *" # run every month
13
+ workflow_dispatch :
14
+ permissions :
15
+ contents : read
16
+ jobs :
17
+ run-static :
18
+ name : Run static 'native-image/build-static-images'
19
+ runs-on : ubuntu-latest
20
+ timeout-minutes : 15
21
+ strategy :
22
+ matrix :
23
+ java-version : ['21', '24-ea']
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - uses : graalvm/setup-graalvm@v1
27
+ with :
28
+ java-version : ${{ matrix.java-version }}
29
+ native-image-musl : ' true'
30
+ github-token : ${{ secrets.GITHUB_TOKEN }}
31
+ native-image-job-reports : ' true'
32
+ - name : Run static images build
33
+ run : |
34
+ cd native-image/build-static-images
35
+ ./run.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
* .txt
2
2
* .class
3
- envmap
3
+ envmap
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2023, 2024 Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
Original file line number Diff line number Diff line change
1
+ # Building Statically Linked or Mostly-Statically Linked Native Executables
2
+
3
+ You can find the steps to run this demo on [ the website] ( https://www.graalvm.org/latest/reference-manual/native-image/guides/build-static-executables/ ) .
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -ex
3
+
4
+ javac EnvMap.java
5
+ # Run fully static image build
6
+ native-image --static --libc=musl EnvMap
7
+ ldd EnvMap
8
+ # Run mostly-static image build
9
+ javac EnvMap.java
10
+ native-image --static-nolibc EnvMap
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments