Source: .github/workflows/toolchain.yml · repository automation
Permissions#
Top-level: {"contents":"read"}. Undeclared means inherited from the caller, not "none needed".
Job dependency graph#
Edges are YAML needs; conditional jobs may not run. Conditions are listed below.
Read diagram source
flowchart TD
n_link["link"]
Jobs#
| Job | Needs | Runner / delegate | Container / strategy | Condition |
|---|---|---|---|---|
link | ${{ matrix.os }} / — | ${{ matrix.container }} / {"fail-fast":false,"matrix":{"include":[{"name":"macOS ARM64","os":"macos-latest","platform_os":"macOS","container":""},{"name":"macOS X64","os":"macos-26-intel","platform_os":"macOS","container":""},{"name":"the EL9 builder","os":"ubuntu-latest","platform_os":"Linux","container":"ghcr.io/dreamweave-mp/stroggforge-linux-x86_64-el9-builder:v72"}]}} | ${{ !startsWith(github.event.head_commit.message, 'RELEASE:') }} |
Steps#
link#
| Step | Action / command | Condition |
|---|---|---|
| — | actions/checkout@v6 | — |
| — | dtolnay/rust-toolchain@stable | — |
| Install LLVM | bash scripts/shared/setup-llvm.sh "" "" | — |
| Link a C++ program | cat > "$RUNNER_TEMP/linked.cpp" <<'CPP' #include <iostream> #include <stdexcept> #include <string> int main() { try { throw std::runtime_error("linked"); } catch (const std::exception &error) { std::cout << std::string(error.what()) << '\n'; } } CPP clang++ -O2 -std=c++17 -c "$RUNNER_TEMP/linked.cpp" -o "$RUNNER_TEMP/linked.o" if [ "$PLATFORM_OS" = macOS ]; then clang "$RUNNER_TEMP/linked.o" -o "$RUNNER_TEMP/linked" -fuse-ld=lld -lc++ -liconv else clang "$RUNNER_TEMP/linked.o" -o "$RUNNER_TEMP/linked" -fuse-ld=lld -lstdc++ fi | — |
| Check it | bash scripts/corprus-crucible/check-release-binary.sh "$RUNNER_TEMP/linked" "$PLATFORM_OS" | — |
| Run it without the LLVM that built it | for installed in "$RUNNER_TEMP"/llvm-* "$RUNNER_TEMP"/micromamba; do if [ -e "$installed" ]; then mv "$installed" "$installed.moved" fi done test "$("$RUNNER_TEMP/linked")" = linked | — |