Design CI workflows to maximize resource efficiency by reusing build artifacts across jobs whenever possible, while carefully evaluating when separate builds are truly necessary. Before creating duplicate build jobs, assess whether different compilation flags or configurations genuinely require separate builds, or if the same artifacts can be reused with additional steps.

Consider these strategies:

Example from workflow optimization:

# Instead of separate benchmark build job
- name: Build benchmarks  
  run: bazel build $ //src/workerd/tests:all_benchmarks

# Consider reusing existing build artifacts:
- name: Run benchmarks
  uses: existing-build-artifacts
  run: ./run-benchmarks-on-existing-binary

This approach reduces CI costs, improves pipeline efficiency, and minimizes resource waste while ensuring all build requirements are met.