@@ -30,7 +30,7 @@ dependencies = Dependency[dep for dep in merged["dependencies"] if !(isa(dep, Bu
3030lazy_artifacts = merged[" lazy_artifacts" ]
3131augment_platform_block = merged[" augment_platform_block" ]
3232build_version = BinaryBuilder. get_next_wrapper_version (name, version)
33- repo = " JuliaBinaryWrappers /$(name) _jll.jl"
33+ repo = " EnzymeAD /$(name) _jll.jl"
3434code_dir = joinpath (Pkg. devdir (), " $(name) _jll" )
3535julia_compat = merged[" julia_compat" ]
3636
@@ -54,17 +54,6 @@ function mvdir(src, dest)
5454 end
5555end
5656
57- function download_cached_binaries (download_dir)
58- NAME = ENV [" NAME" ]
59- PROJECT = ENV [" PROJECT" ]
60- artifacts = " $(PROJECT) /products/$(NAME) *.tar.*"
61- cmd = ` buildkite-agent artifact download $artifacts $download_dir `
62- if ! success (pipeline (cmd; stderr ))
63- error (" Download failed" )
64- end
65- mvdir (joinpath (download_dir, PROJECT, " products" ), download_dir)
66- end
67-
6857function download_binaries_from_release (download_dir)
6958 function do_download (download_dir, info)
7059 url = info[" url" ]
@@ -96,42 +85,40 @@ for json_obj in [merged, objs_unmerged...]
9685 json_obj[" dependencies" ] = Dependency[dep for dep in json_obj[" dependencies" ] if BinaryBuilderBase. is_runtime_dependency (dep)]
9786end
9887skip_build = get (ENV , " SKIP_BUILD" , " false" ) == " true"
99- mktempdir () do download_dir
100- # Grab the binaries for our package
101- if skip_build
102- # We only want to update the wrappers, so download the tarballs from the
103- # latest build.
104- download_binaries_from_release (download_dir)
105- else
106- # We are going to publish the new binaries we've just baked, take them
107- # out of the cache while they're hot.
108- download_cached_binaries (download_dir)
109- end
11088
111- # Push up the JLL package (pointing to as-of-yet missing tarballs)
112- tag = " $(name) -v$(build_version) "
113- upload_prefix = " https://github.com/$(repo) /releases/download/$(tag) "
89+ # binaries will be automatically placed in the `products/` subdir by the GitHub
90+ # Actions workflow.
91+ download_dir = joinpath (pwd (), " products" )
92+ # Grab the binaries for our package
93+ if skip_build
94+ # We only want to update the wrappers, so download the tarballs from the
95+ # latest build.
96+ download_binaries_from_release (download_dir)
97+ end
98+
99+ # Push up the JLL package (pointing to as-of-yet missing tarballs)
100+ tag = " $(name) -v$(build_version) "
101+ upload_prefix = " https://github.com/$(repo) /releases/download/$(tag) "
114102
115- # If we didn't rebuild the tarballs, save the original Artifacts.toml
116- artifacts_toml = skip_build ? read (joinpath (code_dir, " Artifacts.toml" ), String) : " "
117- # This loop over the unmerged objects necessary in the event that we have multiple packages being built by a single build_tarballs.jl
118- for (i,json_obj) in enumerate (objs_unmerged)
119- from_scratch = (i == 1 )
120- BinaryBuilder. rebuild_jll_package (json_obj; download_dir, upload_prefix, verbose, from_scratch)
121- end
103+ # If we didn't rebuild the tarballs, save the original Artifacts.toml
104+ artifacts_toml = skip_build ? read (joinpath (code_dir, " Artifacts.toml" ), String) : " "
105+ # This loop over the unmerged objects necessary in the event that we have multiple packages being built by a single build_tarballs.jl
106+ for (i,json_obj) in enumerate (objs_unmerged)
107+ from_scratch = (i == 1 )
108+ BinaryBuilder. rebuild_jll_package (json_obj; download_dir, upload_prefix, verbose, from_scratch)
109+ end
122110
123- # Restore Artifacts.toml
124- if skip_build
125- write (joinpath (code_dir, " Artifacts.toml" ), artifacts_toml)
126- end
111+ # Restore Artifacts.toml
112+ if skip_build
113+ write (joinpath (code_dir, " Artifacts.toml" ), artifacts_toml)
114+ end
127115
128- # Push JLL package _before_ uploading to GitHub releases, so that this version of the code is what gets tagged
129- BinaryBuilder. push_jll_package (name, build_version)
116+ # Push JLL package _before_ uploading to GitHub releases, so that this version of the code is what gets tagged
117+ BinaryBuilder. push_jll_package (name, build_version)
130118
131- if ! skip_build
132- # Upload the tarballs to GitHub releases
133- BinaryBuilder. upload_to_github_releases (repo, tag, download_dir; verbose= verbose)
134- end
119+ if ! skip_build
120+ # Upload the tarballs to GitHub releases
121+ BinaryBuilder. upload_to_github_releases (repo, tag, download_dir; verbose= verbose)
135122end
136123
137124# Sub off to Registrator to create a PR to General. Note: it's important to pass both
0 commit comments