Skip to content

Commit

Permalink
Skip JLL build if jlqml hasn't changed
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Oct 16, 2023
1 parent 600e0d5 commit da080b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .ci/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg, TOML
import LibGit2
import LibGit2, Downloads

# See https://github.com/JuliaLang/Pkg.jl/issues/2942
# Once this Pkg issue is resolved, this must be removed
Expand All @@ -21,11 +21,19 @@ end

name = "jlqml"

LibGit2.clone("https://github.com/JuliaGraphics/jlqml.git", name)
jlqml_repo = LibGit2.clone("https://github.com/JuliaGraphics/jlqml.git", name)
head_commit = string(LibGit2.head_oid(jlqml_repo))
yggdrasil_buildscript = String(take!(Downloads.download("https://raw.githubusercontent.com/JuliaPackaging/Yggdrasil/master/J/jlqml/build_tarballs.jl",IOBuffer())))
yggdrasil_up_to_date = contains(yggdrasil_buildscript, head_commit)

if yggdrasil_up_to_date
touch(joinpath(mkdir("products"), "NOBUILD"))
exit(0)
end

version = getversion(joinpath(name, "CMakeLists.txt"))

julia_versions = [v"1.6.3", v"1.9", v"1.11"]
julia_versions = [v"1.9", v"1.11"]

# Collection of sources required to complete build
sources = [
Expand Down
5 changes: 5 additions & 0 deletions .ci/override-jll.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if isfile("NOBUILD")
println("Using registered JLL binaries")
exit(0)
end

using Tar, jlqml_jll, CodecZlib

tarball = "undefined"
Expand Down

0 comments on commit da080b1

Please sign in to comment.