Skip to content

Commit 696c13d

Browse files
Simplify release artifacts WIP #31
1 parent d9de6a3 commit 696c13d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

scripts/release-linux.nu

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,18 @@ cp -r LICENSE* $release_dir
7070
cp -r README* $release_dir
7171

7272
cd $release_dir
73-
ls $release_dir
7473

75-
print "Compiling a release archive..."
74+
let artifact_filename = $'($binary)-($version)-($target)'
7675

77-
let archive_filename = $'($binary)-($version)-($target).tar.gz'
78-
print $'Release archive name: ($archive_filename)'
79-
tar --verbose -C $release_dir -czf $archive_filename $binary
80-
print $'Release archive at ($archive_filename) is ready'
81-
echo $'archive=($archive_filename)' | save --append $env.GITHUB_OUTPUT
76+
print $"Renaming release artifact to ($artifact_filename)..."
77+
cp -v $binary $'($release_dir)/($artifact_filename)'
78+
79+
print $'Release artifact at ($artifact_filename) is ready'
80+
print $"Release directory: ($release_dir)"
81+
ls $release_dir | print
82+
83+
echo $'artifact=($artifact_filename)' | save --append $env.GITHUB_OUTPUT
8284

8385
def 'build-with-cargo' [] {
84-
cargo rustc --bin $binary --target $target --release
86+
cargo rustc -q --bin $binary --target $target --release
8587
}

0 commit comments

Comments
 (0)