Topic: How to run github workflows in forked repository?

palino
Avatar
Topic Opener
Joined: 2022-12-19, 08:06 UTC+1.0
Posts: 17
OS: Windows 11
Version: master
Ranking
Pry about Widelands
Posted at: Yesterday 21:54 UTC+2.0

Hello

I want to test my development branch in forked github repository, using all compilers and environments like master branch in official repo. I updated my branch, so that github workflows are active: https://github.com/gpalino/widelands/commit/97100782806d8edb45a3216fc986ea39fe3727a0

All is working except windows-msvc jobs:

Run actions/cache/restore@v4
Error: Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: vcpkg_ref-invalid-to-use-latest

e.g. here: https://github.com/gpalino/widelands/actions/runs/18466384675/job/52609569462

I see comment here https://github.com/widelands/widelands/blob/460eb73bf542bcbd57687f59bdb868cac5aab604/.github/workflows/build_windows_msvc.yaml#L27-L28

but what can I do to have msvc jobs running correctly?


Top Quote
tothxa
Avatar
Joined: 2021-03-24, 12:44 UTC+1.0
Posts: 543
OS: antix / Debian
Version: some new PR I'm testing
Ranking
One Elder of Players
Posted at: Yesterday 22:55 UTC+2.0

You have to set a repo actions variable called VCPKG_REF. The initial value can be any non-empty string. Then run the vcpkg update workflow manually, and if the build succeeds, it will both cache the build deps and set the variable for you.


Attachment: image/png
vcpkg.png

Top Quote