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

vcpkg not writing to cache with GitHub Actions #43692

Closed
rustyconover opened this issue Feb 8, 2025 · 0 comments
Closed

vcpkg not writing to cache with GitHub Actions #43692

rustyconover opened this issue Feb 8, 2025 · 0 comments
Assignees
Labels
category:question This issue is a question

Comments

@rustyconover
Copy link
Contributor

Describe the bug

It seems that sometimes vcpkg doesn't store the built binaries to the GitHub Cache. While some triples are working as expected, others don't seem to write any binaries to the cache at all.

Environment

  • OS: Linux GitHub Runner

To Reproduce

Steps to reproduce the issue:

-- Using source at /vcpkg/buildtrees/utf8-range/src/v5.26.1-47a5094a20.clean
-- Found external ninja('1.10.2').

-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Fixing pkgconfig file: /vcpkg/packages/utf8-range_x64-linux/lib/pkgconfig/utf8_range.pc
-- Fixing pkgconfig file: /vcpkg/packages/utf8-range_x64-linux/debug/lib/pkgconfig/utf8_range.pc
-- Installing: /vcpkg/packages/utf8-range_x64-linux/share/utf8-range/copyright

[DEBUG] 1147: execute_process(cd /vcpkg/packages/utf8-range_x64-linux && zip --quiet -y -r /vcpkg/packages/utf8-range_x64-linux.zip * --exclude .DS_Store)
[DEBUG] 1147: cmd_execute_and_stream_data() returned 0 after 7479 us
[DEBUG] 1148: execute_process(curl -s -L -H "User-Agent: vcpkg/2024-11-12-eb492805e92a2c14a230f5c3deb3e89f6771c321 (curl)" -H "Accept: application/json;api-version=6.0-preview.1" -H "Content-Type: application/json" -H "Authorization: ***" -X POST --data-raw "{
  \"key\": \"utf8-range-96e0673ff5c93354b3f905f8f374696883c98fdf2ea2fd5c31d6d6559d36d603\",
  \"version\": \"96e0673ff5c93354b3f905f8f374696883c98fdf2ea2fd5c31d6d6559d36d603\",
  \"cacheSize\": 32802
}
" https://acghubeus1.actions.githubusercontent.com/3e7hfOg6omJcp3e2ihsBHbIEVGL8M2XqyVr0FPSVNt5PURu7GQ/_apis/artifactcache/caches)
[DEBUG] 1148: cmd_execute_and_stream_data() returned 2 after 6121 us
Stored binaries in 0 destinations in 13.8 ms.

This happens for all packages in the build. Other triplets work as expected with the same configuration.

Expected behavior

We would expect the GitHub Actions cache to be used, with the binaries successfully stored in it.

@JonLiu1993 JonLiu1993 added the category:question This issue is a question label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants