Skip to content

Commit

Permalink
Update Produced Binary Properties (#3)
Browse files Browse the repository at this point in the history
* build: add optimizations to produced binary

optimize binary for host cpu architecture.
perform all size and performance optimizations available.

* ci: correct binary path location

set build to fail if the file isn't found.
set compression to the highest available
  • Loading branch information
Jonathan-Zollinger authored Jan 11, 2025
1 parent 7b8e131 commit f794123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: move-${{ matrix.os }}
path: move*
path: ${{ github.workspace }}/cli/build/native/nativeCompile/move*
compression: 9
if-no-files-found: error
3 changes: 2 additions & 1 deletion cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ graalvmNative {
binaries {
main {
imageName.set("move")
// buildArgs.add('-Ob')
buildArgs.add('-march=native') // binary specific to host cpu architecture
buildArgs.add('-O3') //add all optimizations
}
}
}
Expand Down

0 comments on commit f794123

Please sign in to comment.