feat(release): publish into xlings ecosystem (mirror xlings-res/mcpp + index bump PR)#194
Merged
Merged
Conversation
…+ index bump PR) Add a publish-ecosystem job (needs all 4 platform builds) that, on release: - mirrors mcpp binaries to xlings-res/mcpp (GitHub + GitCode) via mirror_res.sh so XLINGS_RES downloads resolve on every platform incl. the CN/GitCode path (replaces the previous by-hand mirror); - opens a PR against openxlings/xim-pkgindex bumping mcpp to this version via bump_index.sh (a maintainer merges it). Scripts are vendored under .github/tools/ (mirror_res.sh, bump_index.sh, gtc), kept in sync with openxlings/xlings tools/. Best-effort/non-blocking: failures here never fail the release. Secrets already configured (XLINGS_RES_TOKEN, XIM_PKGINDEX_TOKEN, GITCODE_TOKEN).
Sunrisepeak
added a commit
to openxlings/xim-pkgindex
that referenced
this pull request
Jul 1, 2026
…to-bump) (#337) mcpp is mirrored to xlings-res/mcpp and all version entries are XLINGS_RES sentinels, but only the linux block was bot-opted-in — via url_template, which makes version-check.py emit url+sha256 (github-only, no CN/GitCode fallback), inconsistent with the existing entries; macosx/windows had no marker at all so the bot skipped them (manual bumps). Replace linux's url_template with res_versioned=true and add it to macosx/windows. Now version-check.py --apply --only mcpp appends ["<ver>"]="XLINGS_RES" on all three platforms and bumps latest.ref, matching how mcpp is actually maintained (and how xlings itself works). The client never reads platform-level url_template (only the bot does; client resolves via the XLINGS_RES sentinel), so dropping it is safe. Enables the mcpp release pipeline's automated bump (mcpp-community/mcpp#194) to produce correct, mirror-backed entries. Co-authored-by: sunrisepeak <x.d2learn.org@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Automates mcpp's release→xlings-ecosystem publishing (previously all manual, e.g. openxlings/xim-pkgindex#335). New
publish-ecosystemjob (needsall 4 platform builds):xlings-res/mcpp(GitHub + GitCode) viamirror_res.sh mcpp <ver>— mirrors the 4 platform archives +.sha256sidecars, GET-verifies 200 on both hosts. Replaces the by-hand mirror.openxlings/xim-pkgindexviabump_index.sh mcpp <ver>(a maintainer merges it).Shared scripts vendored under
.github/tools/(mirror_res.sh,bump_index.sh,gtc), kept in sync withopenxlings/xlingstools/. Best-effort/non-blocking — never fails the release. Secrets already configured:XLINGS_RES_TOKEN,XIM_PKGINDEX_TOKEN,GITCODE_TOKEN.bump_index.shdelegates the lua edit to the index repo'sversion-check.py --apply --only mcpp. Becausepkgs/m/mcpp.luais markedurl_template, apply emits["<ver>"] = { url = github.com/mcpp-community/..., sha256 }— not the["<ver>"] = "XLINGS_RES"sentinels mcpp currently uses (which keep the GitCode/CN mirror fallback).So the auto-generated bump PR would change mcpp's entry shape (regressive for CN users). It's still a human-reviewed PR, so nothing ships silently — but to make the automation produce XLINGS_RES-consistent bumps,
pkgs/m/mcpp.luashould be switched tores_versioned = true(and dropurl_template, which for mcpp is only consumed by the bot). That's an index-repo change — deferred to maintainer.Companion: openxlings/xlings#349. Design:
openxlings/xlings.agents/docs/2026-07-01-release-ecosystem-publish-design.md.