@@ -38,22 +38,19 @@ jobs:
3838 import Clang_jll
3939 import CompatHelper
4040
41- # hack in a hook for generating new libclang bindings
42- struct CIService <: CompatHelper.CIService
43- ci_cfg::CompatHelper.CIService
44- end
45-
46- CompatHelper.github_token(cis::CIService; kwargs...) = CompatHelper.github_token(cis.ci_cfg; kwargs...)
47- CompatHelper.github_repository(cis::CIService; kwargs...) = CompatHelper.github_repository(cis.ci_cfg; kwargs...)
48- CompatHelper.get_my_username(cis::CIService; kwargs...) = CompatHelper.get_my_username(cis.ci_cfg; kwargs...)
49-
50- function CompatHelper.set_git_identity(cis::CIService)
41+ # hack in a hook for generating new libclang bindings after Project.toml is updated
42+ struct HACK end
43+ function CompatHelper.modify_project_toml(
44+ name::AbstractString,
45+ repo_path::AbstractString,
46+ brand_new_compat::AbstractString,
47+ bump_version::HACK,
48+ )
49+ CompatHelper.modify_project_toml(name, repo_path, brand_new_compat, false)
5150 if Clang_jll.artifact_dir != "${{ env.new_clang_jll }}"
5251 run(`$(Base.julia_cmd().exec[1]) --project -e "import Pkg ; Pkg.instantiate() ; Pkg.build()"`)
5352 run(`$(Base.julia_cmd().exec[1]) --project deps/generate.jl $("${{ env.new_clang_jll }}/lib/libclang.so") $("${{ env.new_llvm_lib }}")`)
5453 end
55-
56- return CompatHelper.set_git_identity(cis.ci_cfg)
5754 end
5855
59- CompatHelper.main(ENV, CIService(CompatHelper.auto_detect_ci_service(; env = ENV)), include_jll = true)
56+ CompatHelper.main(ENV, CIService(CompatHelper.auto_detect_ci_service(; env = ENV)), include_jll = true, bump_version = HACK() )