github_packages: create hard link instead of copying

Some bottles are quite large, and the copies can make us run out of
space rather quickly. Let's try to avoid that by using hard links
instead of copies.
This commit is contained in:
Carlo Cabrera 2023-06-17 01:59:23 +08:00
parent 0606b63136
commit 4c40d452df
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -458,7 +458,7 @@ class GitHubPackages
def write_tar_gz(local_file, blobs)
tar_gz_sha256 = Digest::SHA256.file(local_file)
.hexdigest
FileUtils.cp local_file, blobs/tar_gz_sha256
FileUtils.ln local_file, blobs/tar_gz_sha256
tar_gz_sha256
end