Files
carbon-lang/.github/workflows/README.md
T
Chandler Carruth 173351f69f Add workflow to run benchmarks continuously and nightly (#8111)
This is adding our benchmark running workflows. One runs a light weight
teir of benchmarks on every push to `trunk`. This should give us
continuous light weight performance signals. Once we're happy with the
results, we can also enable this workflow on PRs.

The second fixes our nightly release to ensure it is pinned to the exact
SHA, and then trigger a more comprehensive tier of benchmarks on that
exact SHA. This gives us nightly signal, and lines it up with our
nightly releases.

We also add some documentation about these workflows.

Assisted-by: Antigravity with Gemini
2026-11-17 08:56:34 +00:00

1.1 KiB

Workflows

Hardening

Workflows are hardened using Step Security tool. Findings for the "Harden Runner" steps are available online.

Allowed endpoints

Most jobs only have a few endpoints, but due to tools which do downloads, a few have significantly more. These are:

  • benchmarks.yaml (Bazel, Bencher)
  • clangd_tidy.yaml (Bazel)
  • prek.yaml (Bazel, prek)
  • nightly_release.yaml (Bazel)
  • tests.yaml (Bazel)

When updating one of these, consider updating all of them.

We try to keep allowed-endpoints with one per line. Prettier wants to wrap them, which we fix this with prettier-ignore.

Testing

We keep around an action-test branch in carbon-lang, which can be used to test triggers with push: configurations. For example:

on:
  push:
    branches: [action-test]