Skip to content
Projekte

Über uns

Sammlung von Builder-Repositories für BinaryBuilder.jl

Weitere Projekte

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
+2
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Yggdrasil

Yggdrasil

This repository contains recipes for building binaries for Julia packages using BinaryBuilder.jl. Each recipe is a build_tarballs.jl file in a directory named after the package, under its initial letter, e.g. H/HelloWorldC/build_tarballs.jl.

Contributing

CONTRIBUTING.md covers the contribution process: commit messages, special keywords, rebuilds and compat bounds. The rules for recipes, a build script reference and common patterns are in AGENTS.md, named so that coding agents find it too. Before opening a pull request, check it against the review checklist.

To build a newer version of an existing recipe, open a pull request that updates version and the source in its build_tarballs.jl: the commit hash and tag of a GitSource, or the URL and SHA256 of an ArchiveSource. Sometimes more changes are needed, such as new dependencies or compat bounds; see CONTRIBUTING.md.

To contribute a new recipe, start from an existing recipe for a similar package. BinaryBuilder.run_wizard() can also generate a first recipe and open a pull request.

Buildkite CI builds the recipes a pull request changes.

Building locally

On macOS, including Apple silicon Macs, BinaryBuilder runs builds in Docker, which must be installed and running. Recipes that start with using BinaryBuilder build with the repository's root project, on the Julia version named by julia_version in its Manifest.toml:

julia --project=. -e 'using Pkg; Pkg.instantiate()'
cd H/HelloWorldC
julia --project build_tarballs.jl --verbose --debug x86_64-linux-gnu

The trailing triplet builds only that platform; omit it to build all of them. --debug drops you into a shell in the build environment when the build fails. CI builds recipes that start with using BinaryBuilder2 with the .ci/bb2_project environment instead, on the Julia version BB2_JULIA_VERSION in .buildkite/utils.jl. Before merging, test the generated JLL on your own machine: a successful build is not enough.

Using an AI coding agent

You don't need one to contribute. If you use one:

  • Point it to AGENTS.md if it doesn't read that file automatically. AGENTS.md sends the agent to the topic guides in .agents/skills/ that match the recipe.
  • The optional bb-sandbox MCP server gives the agent an interactive build sandbox; .mcp.json registers it for agents that read that file.
  • Read the Security section of AGENTS.md first. julia build_tarballs.jl runs the whole recipe as Julia code on your machine, outside the sandbox, so build only recipes you trust.
  • A pull request is held to the same rules and review whoever wrote it, so check your agent's work before you open one.

AGENTS.md's rules guide an agent but can't stop one that has been misled, so limit what it can reach. An agent running as your user can usually read anything you can, stored credentials included, so putting a token in its environment doesn't contain it.

  • Run an agent that handles other people's pull requests in a VM, container or separate user account that holds none of your credentials. Your SSH keys push wherever you can, and the token gh auth login stores has at least the repo and gist scopes: it can merge any pull request you can and create gists.
  • Give it, as GH_TOKEN, a fine-grained token limited to the repositories and permissions its task needs. Reviewing needs Pull requests: Read and write on JuliaPackaging/Yggdrasil; leave out Contents: write, which pushing and merging need.
  • Keep its approval prompts on for shell commands and network access.

Using the generated JLL packages

Merging a pull request that changes a recipe publishes a new version of its Julia package (a "JLL package") in the JuliaBinaryWrappers organization and opens a pull request to register it in the General registry. It ships the binaries as artifacts, so Julia code gets them with using LibFoo_jll. Read the BinaryBuilder documentation to learn how to use JLL packages.

Ähnliche Projekte entdecken

Wird geladen…