Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GraalVM (nativeCompile task) for CLI #2475

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ddemin
Copy link

@ddemin ddemin commented Apr 4, 2024

Purpose

Have an ability to make native binary for different platforms

Prerequisites

How To Build & Use

  1. Just launch nativeCompile task
  2. Find your executable and necessary libs/dlls in build/native/nativeCompile
  3. Copy all libs and executable to any directory you need and call executable file accordingly to documentation for allure-commandline

How To Update GraalVM Configs

  1. Uncomment this line in graalvmNative / agent in build.gradle.kts:
    // defaultMode.set("standard")
  2. Execute task runAndGenerate
  3. Change defaultMode.set("standard") to defaultMode.set("direct")
  4. Execute task runAndServe, wait until browser opened, kill the task
  5. Execute task runAndOpen, wait until browser opened, kill the task
  6. Find session- directory in build/native/agent-output/runAndServe and move (cut&paste) its content to higher level (to runAndServe)
  7. Find session- directory in build/native/agent-output/runAndOpen and move (cut&paste) its content to higher level (to runAndOpen)
  8. Execute task 'metadataCopy'
  9. You will see an updated (merged) *json files in src/main/resources/META-INF/native-image

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@baev baev self-requested a review April 4, 2024 10:40
@baev baev added the type:new feature Change that add something new for end users label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:build theme:commandline type:new feature Change that add something new for end users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants