A boost.org release mirror using GitHub workflows and the release system. This repository mirrors the source (and optionally binaries) folders from archives.boost.io, excluding alpha, beta, and rc non-release candidates.
Note
This solution aims to be an easy, reproducible release mirror. alpha, beta, and rc candidates are not mirrored.
Two workflows handle initial bootstrapping and ongoing release checks:
bootstrap.yml
check_new_release.ymlBoth workflows support two modes via the include_binaries input (or the INCLUDE_BINARIES repository variable for scheduled runs):
Important
Source only (include_binaries: false, default)
Downloads the standard Boost release source archives (.7z, .tar.bz2, .tar.gz, .zip and their .json checksums) from the remote source folder.
Works out of the box with the default github.token (no extra permissions or PAT needed in a newly forked repo) and takes just over 60 seconds to bootstrap.
Caution
Source and binaries (include_binaries: true)
Downloads all release files (excluding _rc) from both the remote source and binaries folders.
Requires a Personal Access Token (PAT) with minimal contents: write permissions to avoid API rate limiting (~5 minutes to bootstrap large binary files).
In your repository settings:
- Create a repository secret named
BOOSTcontaining your PAT (${{ secrets.BOOST }}). - For scheduled runs with binaries, create a repository variable named
INCLUDE_BINARIESset totrue.
To bootstrap and maintain a mirror:
- Fork the repository and run bootstrap.yml manually (
workflow_dispatch). It discovers all Boost releases from1.63.0to the current latest release onboostorg/boost, downloads the assets fromarchives.boost.ioin parallel matrix jobs, creates tagged releases (boost-1.x.0), and marks the newest version as the latest release. - Enable the
scheduletrigger in check_new_release.yml to automatically poll for and mirror new Boost releases as they become available:
schedule:
- cron: "*/30 */1 * * *"Dynamic matrix arrays: https://www.kenmuse.com/blog/dynamic-build-matrices-in-github-actions/