From 6fc56e1abf8d2da2de0ce3e6591ac529327fc308 Mon Sep 17 00:00:00 2001 From: "Matteo Franci a.k.a. Fugerit" Date: Sat, 18 Jan 2025 00:30:31 +0100 Subject: [PATCH] Add GraalVM native test added wot GitHub workflow --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4da892c9d..23ddf4c3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,33 @@ jobs: - name: Run Build id: build_step run: './gradlew "-Pfreemarker.signMethod=none" "-Pfreemarker.allowUnsignedReleaseBuild=true" --continue clean build' + - name: Set up GraalVM 21 + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: graalvm + # test pipeline to check native support + # + # - GraalVM is added to the runner + # - A simple native project is build and run + # + # At the something like that should be found in the log : + # + # INFO: name : FreeMarker Native Demo, version : 2.3.35-nightly + # Jan 15, 2025 4:28:19 PM freemarker.log._JULLoggerFactory$JULLogger info + # INFO: result : + # + # + # Hello : FreeMarker GraalVM Native Demo + # + # + #

Hello : FreeMarker GraalVM Native Demo

+ #

Test template for Apache FreeMarker GraalVM native support (2.3.35-nightly)

+ # + # + - name: Test GraalVM native support (build and run) + id: native_test + run: './gradlew :freemarker-test-graalvm-native:nativeCompile;./freemarker-test-graalvm-native/build/native/nativeCompile/freemarker-test-graalvm-native' - name: Upload Failed Report uses: actions/upload-artifact@v4 if: failure() && steps.build_step.outcome == 'failure'