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

Fails on windows-2019 runners #93

Open
amtep opened this issue Aug 15, 2022 · 4 comments
Open

Fails on windows-2019 runners #93

amtep opened this issue Aug 15, 2022 · 4 comments

Comments

@amtep
Copy link

amtep commented Aug 15, 2022

When I do runs-on: windows-latest it works, but I'm working on a project (realm-js) that builds on windows-2019. The ccache action fails there with:

Error: Unable to locate executable file: sudo. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.

I think it's not detecting that it's on a windows platform, and thinks it's on linux.

I made a small demo of the issue at https://github.com/amtep/nonogram-qt/runs/7838787691

@jonashaag
Copy link
Contributor

Thanks for the report. Can you try to contribute a fix?

@amtep
Copy link
Author

amtep commented Aug 16, 2022

No sorry, I'm stumped. I think it's that process.platform call, but I'm not sure and I have no idea why it would return the wrong thing anyway. I also have zero experience with TypeScript.

@amtep
Copy link
Author

amtep commented Aug 16, 2022

If I run with the latest (untagged) commit of this action, it works :)

So no code change is needed, just a new release.

@jonesmz
Copy link

jonesmz commented Sep 11, 2022

Related to this, if I use hendrikmuhs/ccache-action@v1.2, i can build on windows 2019.

However, if i use hendrikmuhs/ccache-action@v1, i cant.

This makes me think something isn't set up with how github does version checks for "major releases".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants