Skip to content

Commit d79577e

Browse files
authored
Merge branch 'master' into tb/llvmbootstrap
2 parents dae91a2 + 0c9860c commit d79577e

File tree

13 files changed

+1082
-101
lines changed

13 files changed

+1082
-101
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@ jobs:
6666
squashfs: true
6767
julia-version: "1.11"
6868

69-
# - runner: privileged
70-
# squashfs: true
71-
# julia-version: "nightly"
69+
- runner: privileged
70+
squashfs: true
71+
julia-version: "1.12-nightly"
72+
73+
- runner: privileged
74+
squashfs: true
75+
julia-version: "nightly"
7276

7377
# Add a job that uses the unprivileged builder with unpacked shards
7478
- runner: unprivileged

Artifacts.toml

Lines changed: 604 additions & 10 deletions
Large diffs are not rendered by default.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BinaryBuilderBase"
22
uuid = "7f725544-6523-48cd-82d1-3fa08ff4056e"
33
authors = ["Elliot Saba <[email protected]>"]
4-
version = "1.38.0"
4+
version = "1.41.0"
55

66
[deps]
77
Bzip2_jll = "6e34b625-4abd-537c-b88f-471c36dfa7a0"

src/ArchiveUtils.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Base: SHA1
22
using Downloads, Tar, p7zip_jll, pigz_jll, SimpleBufferStream, SHA
33
using Pkg.Artifacts: artifact_exists, artifact_path, query_override
4+
using XZ_jll: xz
45

56
export unpack, list_tarball_files, verify, download_verify
67

@@ -146,14 +147,16 @@ end
146147
# function
147148
function archive_artifact(hash::SHA1, tarball_path::String;
148149
honor_overrides::Bool=false,
149-
package::Function=package)
150+
package::Function=package,
151+
compression_format::String="gzip",
152+
)
150153

151154
if !artifact_exists(hash)
152155
error("Unable to archive artifact $(bytes2hex(hash.bytes)): does not exist!")
153156
end
154157

155158
# Package it up
156-
package(artifact_path(hash), tarball_path)
159+
package(artifact_path(hash), tarball_path; format=compression_format)
157160

158161
# Calculate its sha256 and return that
159162
return open(tarball_path, "r") do io
@@ -170,6 +173,8 @@ function package(src_dir::AbstractString, tarball_path::AbstractString;
170173
# does not.
171174
compress_cmd = if format == "gzip"
172175
pipeline(`$(pigz()) --no-time --no-name -9`, stdout=tarball_path)
176+
elseif format == "xz"
177+
pipeline(`$(xz()) -T0 -9`; stdout=tarball_path)
173178
else
174179
pipeline(`$(p7zip()) a -si -t$format -mx9 $tarball_path`, stdout=devnull)
175180
end

src/Dependencies.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ patch(v::VersionNumber) = v.patch
332332
major(v::Pkg.Types.VersionBound) = v.t[1]
333333
minor(v::Pkg.Types.VersionBound) = v.t[2]
334334
patch(v::Pkg.Types.VersionBound) = v.t[3]
335+
336+
# If a version in a PackageSpec is given as a string it signifies being a VersionSpec that Pkg will handle as such.
337+
__version(v::AbstractString) = __version(PKG_VERSIONS.VersionSpec(v))
335338
__version(v::VersionNumber) = v
336339
__version(v::PKG_VERSIONS.VersionSpec) = v.ranges[1].lower
337340
version(d::AbstractDependency) = __version(getpkg(d).version)

0 commit comments

Comments
 (0)