This repository mirrors Qt's prebuilt libclang archives from
https://download.qt.io/development_releases/prebuilt/libclang/.
The release_* branches contain the unmodified source branches from
https://code.qt.io/clang/llvm-project.git.
The default mirror-automation branch contains only the mirroring automation.
Keep it as the default branch: GitHub schedules run from the default branch.
The Mirror Qt libclang workflow checks every Friday at 07:23 UTC
(08:23 CET / 09:23 CEST). It discovers stable versions from 23.0.0 onward;
older releases are retained as they were manually mirrored.
Run it manually from Actions to check immediately. The optional versions
input accepts a comma-separated list such as 23.1.0,23.1.1. The dry_run
input discovers missing releases without publishing or pushing anything.
For each release, the workflow:
- Reads Qt's checksum manifest and uses its modification timestamp for the release name and tag, matching the existing release naming convention.
- Fetches the corresponding
release_<version>-basedsource branch and pushes it without force. Existing branches must match the upstream SHA. - Creates a draft release at that source commit, with the existing description format and a link to Qt's checksum manifest.
- Copies every archive listed in the manifest, checks its MD5, and verifies GitHub's reported upload size and SHA-256. The checksum manifest is also attached so it remains available if Qt removes the original.
- Publishes only after all assets are present and the manifest is unchanged.
Interrupted drafts are resumed, identical assets are retained, and conflicting assets or source refs fail the run without being overwritten. Completed releases are skipped without downloading the archives again. New source branches without prebuilt archives are ignored. Concurrent runs are serialized. Releases are processed in version order; individual failures do not stop other versions, but the workflow reports failure if any release fails.
Enable Actions for this repository. The publishing job uses the built-in
GITHUB_TOKEN with contents: write for releases and assets. Source pushes
use a dedicated write-enabled SSH deploy key, whose private key is stored in
the Actions secret MIRROR_SSH_KEY. This is necessary because the source
branches include upstream workflow files, which GITHUB_TOKEN cannot update.
The key grants access only to this repository; no personal token is stored.
SSH host keys are obtained through GitHub's HTTPS metadata API and checked.
No additional environments or runners are needed. Checkout is pinned to a commit.
The workflow has a repository guard and does not publish on pushes or pull
requests. Changes to the automation run its tests.
GitHub disables schedules in public repositories after 60 days without
repository activity. Successful scheduled checks create an empty commit on
mirror-automation only when its latest commit is at least 28 days old,
keeping the schedule active during periods without new libclang releases.
Source branches and release tags are never changed by this keepalive.
Requires Python 3.10+, Git, and curl. No Python packages are required.
python -m unittest discover -s .github/mirror -v
python .github/mirror/mirror_libclang.py --dry-run --versions 23.1.0,23.1.1For an authenticated local run, provide GH_TOKEN through the environment.
Git history is fetched into a temporary bare repository only when a source
branch is missing from GitHub. Existing mirror history is fetched without
blobs to reduce transfer, then Qt's new history is fetched and pushed.
Archives are transferred one at a time and deleted after verified upload.