Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add option to not display sccache stats in workflow summary #125

Open
lcheylus opened this issue Jun 19, 2024 · 1 comment
Open

Comments

@lcheylus
Copy link

With PR #113, there is now an annotation and a summary table with sccache stats for each job at the end of a workflow. sccache stats are also available in a "Post Run" step for each job.

For some jobs, I would like to have an option for this action to NOT add "sccache stats" in annotation and summary table. For example, add option stats (true by default):

uses: mozilla-actions/sccache-action@v0.0.5
with:
  version: "v0.7.4"
  stats: false

@orf As author of this PR, please could you add this option ?

Arguments for my request:

  • I'm using the vmactions/freebsd-vm action to run some jobs/workflow on FreeBSD OS => FreeBSD VM run on an Ubuntu GH runner.
  • In this FreeBSD VM, I'm using sccache action: install sccache FreeBSD package and set some env. vars for the action => sccache is correctly used in my job (build of a Rust project via cargo build).
  • At the end of the FreeBSD job, "sccache stats" are always void because the command sccache --show-stats run on the Ubuntu runner, not on the FreeBSD VM where sccache is used.
  • In conclusion, sccache stats displayed in annotation/summary table are useless in this case.
  • I have a specific step/script in my FreeBSD workflow to get "sccache stats" in a text file and displays it.
@sylvestre
Copy link
Collaborator

@orf ping ? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants