From df417f8e30f069b91cb81975331dce01779a0bda Mon Sep 17 00:00:00 2001 From: Zack Maril Date: Tue, 25 Aug 2026 15:52:49 -0400 Subject: [PATCH 1/2] Contribute compile times to cratebank The build this job already runs, measured, plus the opt-in that lets this repository's crate names appear in the census rather than a count. They are already public here. It goes before the existing cargo steps and builds what they would have built, so the added cost is mostly the measuring rather than a second build. `strict` is on, because this is the build now: a measurement that quietly did not happen would mean nothing built the project either. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01361quprG7tUgaVFKAmKtJZ --- .github/workflows/ci.yml | 13 +++++++++++++ Cargo.toml | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f853fb8..ec0e781 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,19 @@ jobs: - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 with: workspaces: infact + # Every CI run contributes this build to the public compile-time census + # at . It builds what the steps below would have + # built anyway, measured, so what is added here is mostly the measuring. + # + # `strict` because this is the build. A measurement that quietly did not + # happen would mean nothing built the project either, and a green check + # would be saying so about work that never ran. + - uses: PowderworksCode/cratebank/action@v0.1.1 + with: + args: --workspace + org-id: powderworks + strict: "true" + # The toolchain comes from rust-toolchain.toml, which rustup installs on # first use, so no setup action decides the version. - run: cargo fmt --all --check diff --git a/Cargo.toml b/Cargo.toml index d49d51a..bf12ee3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,3 +59,10 @@ let_underscore_must_use = "deny" [profile.release] lto = "thin" + +[workspace.metadata.cratebank] +# Opted in: this repository is public, so its crate names are already +# public. Without this the census records the build and withholds the +# names, which for an open repository is precision nobody asked for. +public = true +repository = "https://github.com/PowderworksCode/infact" From 479d60d4696e709070cfcb0b00647db6d1255454 Mon Sep 17 00:00:00 2001 From: Zack Maril Date: Tue, 25 Aug 2026 17:22:57 -0400 Subject: [PATCH 2/2] Tell the action which directory the project is in This job checks out into a subdirectory and sets a `working-directory` default for it. A composite action's steps do not inherit that default, so the action looked for a Cargo.toml at the workspace root: error: could not find `Cargo.toml` in /home/runner/work/infact/infact Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01361quprG7tUgaVFKAmKtJZ --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec0e781..a0f5f32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,12 @@ jobs: - uses: PowderworksCode/cratebank/action@v0.1.1 with: args: --workspace + # This job checks out into a subdirectory and sets a + # `working-directory` default for it. A composite action's steps do + # not inherit that default, so it has to be said again here -- + # without it the action looks for a `Cargo.toml` at the workspace + # root and finds nothing. + working-directory: infact org-id: powderworks strict: "true"