This repo demonstrates an issue related to actions/cache and binary files produced from C++ compilation. It seems that actions/cache is not able to restore some build artifacts in such a way that they can be reused from the second build.
- Build nodejs. The compilation produces
outfolder - Cache whole nodejs source along with
outfolder - Run second build
- Actual: An error is thrown -
/bin/sh: /Users/runner/work/cache-actions-issue/cache-actions-issue/nodejs/out/Release/mksnapshot: cannot execute binary file make[1]: *** [ffb81844d4b5e90f0e9727f409709bbedd426bc1.intermediate] Error 126. More info can be found here. - Expected: Green build that reuses cached nojes binaries
- Go to
Actionstab - Run
nodejs-ciworkflow