@@ -91,6 +91,17 @@ function upload_compiler_shard(repo, name, version, hash, archive_type; platform
9191 filename = BinaryBuilderBase. artifact_name (cs)
9292 tarball_hash = publish_artifact (repo, tag, hash, filename)
9393
94+ # Upload also the logs tarball, but do it only once (e.g. only with unpacked archives).
95+ if archive_type == :unpacked
96+ # Note (Mosè): I'm not 100% sure this is always the correct platform, but looked
97+ # like the best option from what I could gather. Note also that the logs tarball
98+ # may not always exist (e.g. for RustToolchain), so eventually we may want to guard
99+ # this with `if isfile(logs_filename)`.
100+ p = isnothing (target) ? platform : target
101+ logs_filename = joinpath (" products" , " $(name) -logs.v$(version) .$(triplet (p)) .tar.gz" )
102+ BinaryBuilder. upload_to_github_releases (repo, tag, logs_filename)
103+ end
104+
94105 return [
95106 (" https://github.com/$(repo) /releases/download/$(tag) /$(filename) .tar.gz" , tarball_hash),
96107 ]
@@ -143,7 +154,7 @@ function jrun(script::String, args::String...; verbose=verbose, debug=debug, dep
143154 run (` $(Base. julia_cmd ()) --color=yes $(script) $(filter (x -> ! isempty (x), [@flag (verbose), @flag (debug), @flag (deploy), @flag (register), args... ])) ` )
144155end
145156
146- import BinaryBuilder: build_tarballs
157+ import BinaryBuilder: build_tarballs
147158function build_tarballs (project_path:: String , args:: String... ; deploy= false , register= false )
148159 @info (" Building $(project_path) ..." )
149160 cd (project_path) do
0 commit comments