Skip to content

Unable to restore C++ artifacts in some situations #460

@Fatme

Description

@Fatme

It seems actions/cache is not able to restore C++ artifacts in such a way that they can be used from the build.

We're using node.js source code directly as part of our app. Usually, nodejs build takes ~30mins. I want to improve our CI builds using actions/cache and cache whole node.js's source code along with build artifacts. The problem is that the second build throws an error as it is not able to execute one of cached binaries. It seems the binary is getting corrupted and it is no longer recognized.

It seems the problem is related to how actions/cache handles and processes provided input files.

It works if I manually create a zip, upload it to s3 and download it from the build.

I created a repo that demonstrates the problem - https://github.com/Fatme/cache-actions-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions