Skip to content

Commit

Permalink
Fix path directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Rounak Datta committed Aug 8, 2023
1 parent c8abdee commit f9c973e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_cli_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:

- name: Rename the Linux binary appropriately
if: matrix.os == 'ubuntu-latest'
working-directory: ./build/bin/native/releaseExecutable
working-directory: ./build/bin/native/debugExecutable
run: |
mv cli.kexe cmdk-linux-x86_64
- name: Rename the macOS binary appropriately
if: matrix.os == 'macos-13'
working-directory: ./build/bin/native/releaseExecutable
working-directory: ./build/bin/native/debugExecutable
run: |
mv cli.kexe cmdk-osx-x86_64
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ repositories {

kotlin {
val hostOs = System.getProperty("os.name")
val hostArch = System.getProperty("os.arch")
val isMingwX64 = hostOs.startsWith("Windows")
val nativeTarget = when {
hostOs == "Mac OS X" -> macosX64("native")
hostOs == "Mac OS X" && hostArch == "x86_64" -> macosX64("native")
hostOs == "Mac OS X" && (hostArch == "arm64" || hostArch == "aarch64") -> macosArm64("native")
isMingwX64 -> mingwX64("native")
hostOs == "Linux" -> linuxX64("native")
else -> throw GradleException("Host OS is not supported: $hostOs")
Expand Down
2 changes: 1 addition & 1 deletion jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ assemble:
active: ALWAYS
attachPlatform: true
fileSets:
- input: 'build/bin/native/releaseExecutable'
- input: 'build/bin/native/debugExecutable'
output: 'bin'
includes: [ 'cmdk-${platform}' ]

Expand Down

0 comments on commit f9c973e

Please sign in to comment.