Visitar URL original
GitHub · Where software is built
The Wayback Machine - https://web.archive.org/web/20260330021151/https://github.com/github/codeql-action/issues/56
Skip to content

Add examples using Cache action? #56

@Marcono1234

Description

@Marcono1234

It appears some of the actions provided by this repository can take quite some time:

  • codeql-action/init: Downloads 1GB archive, taking ~1 minute
  • codeql-action/autobuild: Downloads all required dependencies necessary for building the project (e.g. Maven dependencies)

Would it therefore make sense to use the Cache action? If so, could you add that to the README (and to the workflow file GitHub adds when pressing "Set up code scanning"?) please.

codeql-action/init

Note that the Cache action has limitations on the cache size (currently 5GB per repository), so maybe due to the large size of the releases this would reach the Cache limit too soon.
Also the releases are already compressed as .tar.gz, so the Cache action (which just compresses the files as well) might not actually cause any speed up.

codeql-action/autobuild

Since this action supports multiple programming languages, the location of the dependencies differs, so I am not sure how a Cache example could cover all (or at least multiple) of them in a reasonable way.
Maybe it would at least be helpful to link in the README to the Cache examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions