Skip to content

Commit 0afb662

Browse files
committed
Add GraalVM native test added wot GitHub workflow
1 parent 5d73d6c commit 0afb662

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,33 @@ jobs:
5858
- name: Run Build
5959
id: build_step
6060
run: './gradlew "-Pfreemarker.signMethod=none" "-Pfreemarker.allowUnsignedReleaseBuild=true" --continue clean build'
61+
- name: Set up GraalVM 21
62+
uses: actions/setup-java@v4
63+
with:
64+
java-version: 21
65+
distribution: graalvm
66+
# test pipeline to check native support
67+
#
68+
# - GraalVM is added to the runner
69+
# - A simple native project is build and run
70+
#
71+
# At the something like that should be found in the log :
72+
#
73+
# INFO: name : FreeMarker Native Demo, version : 2.3.35-nightly
74+
# Jan 15, 2025 4:28:19 PM freemarker.log._JULLoggerFactory$JULLogger info
75+
# INFO: result :
76+
# <html>
77+
# <head>
78+
# <title>Hello : FreeMarker GraalVM Native Demo</title>
79+
# </head>
80+
# <body>
81+
# <h1>Hello : FreeMarker GraalVM Native Demo</h1>
82+
# <p>Test template for Apache FreeMarker GraalVM native support (2.3.35-nightly)</p>
83+
# </body>
84+
# </html>
85+
- name: Test GraalVM native support (build and run)
86+
id: native_test
87+
run: './gradlew :freemarker-test-graalvm-native:nativeCompile;./freemarker-test-graalvm-native/build/native/nativeCompile/freemarker-test-graalvm-native'
6188
- name: Upload Failed Report
6289
uses: actions/upload-artifact@v4
6390
if: failure() && steps.build_step.outcome == 'failure'

0 commit comments

Comments
 (0)