You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run native-runtime Maven commands from the `java` directory. Native packaging requires Node.js and npm in addition to JDK 25 and Maven because `copilot-native/scripts/fetch-native.mjs` retrieves the pinned npm runtime package.
493
493
494
-
The build currently supports native packaging only on Linux x64. Maven activates the `native-linux-x64` profile automatically on a Linux `amd64`host. That profile runs the native fetch-script tests, fetches the pinned `@github/copilot-linux-x64` package, builds the `linux-x64` classifier JAR, and verifies its native contents. Ensure npm can authenticate to the package registry before running the build.
494
+
Validated on a native Linux x64 host: Maven activates the `native-linux-x64` profile automatically on Linux `amd64`when `copilot.native.skip.download` is not set. That profile runs the native fetch-script tests, fetches the pinned `@github/copilot-linux-x64` package during `generate-resources`, packages the `linux-x64` classifier JAR during `package`, and verifies its native contents. Ensure npm can authenticate to the package registry before running the build.
495
495
496
496
On macOS, Windows, Linux ARM64, and other unsupported hosts, do not force the Linux profile. A normal build produces only the OS-neutral primary, sources, and Javadoc JARs; it does not run the Linux x64 fetch-script tests, download or stage Linux native files, or produce a `linux-x64` classifier JAR. Use this command to validate that behavior:
497
497
498
498
```bash
499
499
mvn -pl copilot-native clean verify
500
500
```
501
501
502
-
To build only the OS-neutral artifacts on a supported host, disable native download and packaging:
502
+
To build only the OS-neutral artifacts on any host, disable native download and packaging:
Linux x64 validation is pending. The follow-up work must confirm automatic profile activation, run the fetch-script tests and full Java reactor, verify the classifier JAR contents, and confirm the placeholder-only command above suppresses all native output. Update this section with the validated Linux x64 behavior and any required command changes after that work is complete.
On a supported Linux x64 host, the classifier JAR contains `native/linux-x64/runtime.node`, `native/linux-x64/platform.properties`, and `native/linux-x64/copilot`. The placeholder JAR remains OS-neutral and contains no native binaries. Unsupported hosts retain the placeholder-only behavior without producing a `-linux-x64.jar`.
0 commit comments