MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
227 stars 493 forks source link

DLL mismatch on GithHub Actions hostedtoolcache #2440

Open brookst opened 6 months ago

brookst commented 6 months ago

I'm trying to debug an issue with an unusable GitHub actions build: https://github.com/builder555/PineSAM/issues/198 pyinstaller tries to bundle winrt.cp312-win_amd64.pyd etc. but issues a warning that it can't resolve api-ms-win-core-xxx DLLs. E.g.: failed build log.

The builder nodes seem to have api-ms-win-core-libraryloader-l1-1-0.dll and api-ms-win-core-libraryloader-l1-1-1.dll not the api-ms-win-core-libraryloader-l1-2-0.dll the pyd files are built against. They are also entirely missing api-ms-win-core-path-l1-1-0.dll. I see this from listing the C:\Windows\System32\downlevel directory e.g. in this build log.

I guess this is a caching issue on GitHub Actions, the pyd files are in the site-packages directory in C:\hostedtoolcache\windows\Python etc. I tried to have pip rebuild the packages but ran into an issue building Devices.Bluetooth.GenericAttributeProfile - #2439. Skipping just that, pyinstaller still seems to grab the other packages from the hostedtoolcache path, not wherever pip installed them.

Can anyone suggest anything to make these libraries link correctly?

GrantMeStrength commented 4 months ago

Mike - as I understand you might be the right person for Github Actions?