Skip to content

Commit

Permalink
[DO-000] use specific artifact name to download it (#370)
Browse files Browse the repository at this point in the history
* use specific artifact name to download it

* try again

* use pwd

* more debug

* update

* Fix

* Remove ls tests

* Release 1.1.134

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Generated by cargo-workspaces

---------

Co-authored-by: micbakos-rdx <[email protected]>
  • Loading branch information
duje-begonja-rdx and micbakos-rdx authored Feb 10, 2025
1 parent 72766db commit 059e84b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release-kotlin-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,15 @@ jobs:
steps:
- uses: RDXWorks-actions/checkout@main

- uses: RDXWorks-actions/download-artifact@main
- uses: RDXWorks-actions/download-artifact-v4@main
with:
path: artifacts
name: aarch64-apple-darwin
path: artifacts/aarch64-apple-darwin

- uses: RDXWorks-actions/download-artifact-v4@main
with:
name: x86_64-unknown-linux-gnu
path: artifacts/x86_64-unknown-linux-gnu

- name: Set up JDK 17
uses: RDXWorks-actions/setup-java@v3
Expand Down
7 changes: 3 additions & 4 deletions jvm/sargon-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import com.radixdlt.cargo.desktop.DesktopTargetTriple
import com.radixdlt.cargo.desktop.currentTargetTriple
import com.radixdlt.cargo.toml.sargonVersion
import org.gradle.configurationcache.extensions.capitalized
import org.gradle.internal.logging.text.StyledTextOutput
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.nio.file.Files

Expand Down Expand Up @@ -342,16 +341,16 @@ tasks.register("copyExternalArtifacts") {
val rustProjectDir = projectDir.parentFile.parentFile
val artifactsDir = File(rustProjectDir, "artifacts")

val fileTargets = artifactsDir.listFiles()?.mapNotNull { file ->
val directoryTargets = artifactsDir.listFiles()?.mapNotNull { file ->
val triple = DesktopTargetTriple.from(file.name) ?: return@mapNotNull null
file to triple
}.orEmpty()

if (fileTargets.isEmpty()) {
if (directoryTargets.isEmpty()) {
error("No files found in ${artifactsDir.absolutePath}")
}

fileTargets.forEach { target ->
directoryTargets.forEach { target ->
exec {
workingDir = rustProjectDir
commandLine(
Expand Down

0 comments on commit 059e84b

Please sign in to comment.