I'm setting up a local Windows runner for GitLab for a Rust project.
Building from the Windows command prompt works fine. But the CI script fails with
24 $ cargo build --release 25cargo : The term 'cargo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check 26the spelling of the name, or if a path was included, verify that the path is correct and try again. 27At C:\Windows\TEMP\build_script983527380\script.ps1:221 char:1 28+ cargo build --release 29+ ~~~~~ 30 + CategoryInfo : ObjectNotFound: (cargo:String) , CommandNotFoundException 31 + FullyQualifiedErrorId : CommandNotFoundException
I've tried manually setting the PATH variable. I don't understand why the gitlab runner can't see Cargo. Any tips appreciated!