Skip to content

Commit 07b2187

Browse files
committed
fix: add message about restarting the shell
1 parent 0712d6f commit 07b2187

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,24 @@ export async function main(args: string[]): Promise<number> {
184184
errorMessages.forEach((tool) => error(tool))
185185

186186
core.info("setup_cpp finished")
187+
188+
if (!isCI()) {
189+
switch (process.platform) {
190+
case "win32": {
191+
core.info("Run `RefreshEnv.cmd` or restart your shell to update the environment.")
192+
break
193+
}
194+
case "linux":
195+
case "darwin": {
196+
core.info("Run `source ~/.profile` or restart your shell to update the environment.")
197+
break
198+
}
199+
default: {
200+
// nothing
201+
}
202+
}
203+
}
204+
187205
return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message
188206
}
189207
// Run main

0 commit comments

Comments
 (0)