Skip to content

Commit 54a345f

Browse files
committed
Add GraalVM native test added wot GitHub workflow
1 parent 8083405 commit 54a345f

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323
on:
2424
workflow_dispatch: { }
2525
push:
26-
branches: [ '2.3-gae' ]
26+
branches: [ '2.3-gae', '1-freemarker-test-graalvm-native' ]
2727
pull_request:
2828
branches: [ '2.3-gae' ]
2929

@@ -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)