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

Invalid workflow file generated by cmake-init #57

Closed
fsgmhoward opened this issue May 20, 2022 · 2 comments
Closed

Invalid workflow file generated by cmake-init #57

fsgmhoward opened this issue May 20, 2022 · 2 comments

Comments

@fsgmhoward
Copy link

I have set up the project using cmake-init with vcpkg. I made an initial commit after the generation of code but GitHub reported that ci.yml generated has syntax error near the vcpkg installation step.

The file generated is here:
https://pastebin.com/gQTA8p43

And the error reported by GitHub action is near line 55:
image

I did a check on the yaml syntax and think it has no issue. Can someone help me out with this?

@friendlyanon
Copy link
Owner

Indeed, the error has been there since 05bfbfb (v0.26.0). The error is actually on the next line. The YAML syntax is incorrect. I'll release a fix for this in a bit.

@friendlyanon
Copy link
Owner

Fixed d4a6712 and released with v0.30.1

If you just want to fix your YAML quickly, then run sed with 's/\${{ env\.VCPKG_COMMIT }}/"&"/' on the file.

Thanks for reporting this!

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

2 participants