feat(ruby): add build-from-source workflow to fill R2 mirror gaps#229
Merged
CalvinAllen merged 1 commit intomainfrom Feb 9, 2026
Merged
feat(ruby): add build-from-source workflow to fill R2 mirror gaps#229CalvinAllen merged 1 commit intomainfrom
CalvinAllen merged 1 commit intomainfrom
Conversation
Add a GitHub Actions workflow that detects Ruby version+platform combinations missing from the R2 mirror and builds them from source. This addresses gaps where upstream ruby-builder hasn't published builds for certain versions on Linux/macOS. - Create gap detection script (scripts/detect-ruby-gaps/) that queries upstream sources and compares against R2 metadata - Create build-ruby-from-source.yml workflow with detect-gaps, build, and trigger-manifests jobs across all 6 platforms - Fix manifest generator to handle "built-from-source" source_url by probing R2 for actual binary extensions - Add "source" field to manifest schema and ManifestDownload struct to flag built-from-source entries - Add auto-replace logic to mirror-binaries so upstream binaries overwrite built-from-source entries during sync
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.
Summary
scripts/detect-ruby-gaps/) that queries upstream Ruby sources (RubyInstaller + ruby-builder) and compares against R2 metadata to identify missing version+platform combinationsbuild-ruby-from-source.ymlworkflow with three jobs: detect-gaps, build (across all 6 platforms via matrix), and trigger-manifestssource_url: "built-from-source"by probing R2 for actual binary extensions, and propagate asourcefield to manifest entriesCloses #225
Test plan
--version=3.2.10to verify 6-platform matrix outputversion: 3.2.10,dry_run: trueto verify gap detection outputdry_run: falseand verify builds complete on all platforms"source": "built-from-source"fielddtvem install ruby 3.2.10works on macOS/Linux after manifests update