Use pre-built scraper binary in scrape workflows#3557
Merged
cuihtlauac merged 2 commits intomainfrom Mar 10, 2026
Merged
Conversation
When tool/ or src/ changes on main, build the scraper and publish it as a GitHub release (scraper-latest). This avoids rebuilding the OCaml toolchain on every daily scrape run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the full OCaml toolchain setup (setup-ocaml, opam install, dune build) with downloading the pre-built binary from the scraper-latest GitHub release. This cuts the scrape job setup from several minutes to a few seconds. - Add SCRAPE variable to Makefile (defaults to dune exec for local dev) - Scrape workflows now download the binary and pass SCRAPE=./scrape.exe - Only runtime libs (libev4, libonig5) are installed, not -dev packages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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.
Summary
SCRAPEvariable to Makefile, defaulting todune execfor local devscrape.yml,scrape_platform_releases.yml) now download the pre-built binary from thescraper-latestrelease instead of rebuilding from sourcelibev4,libonig5) are installed — no OCaml toolchain neededTest plan
release-scrapers.ymlvia workflow_dispatchscraper-latestrelease exists withscrape.exeassetscrape.ymlvia workflow_dispatch and verify it downloads the binary and runs successfullyscrape_platform_releases.ymlvia workflow_dispatch and verify likewisemake scrape_ocaml_planetstill works locally (uses dune exec)🤖 Generated with Claude Code