Fix for cross installation.

Do not exit immediately, if cross usage is required, but cross executable was not found before the installation.
This commit is contained in:
svartalf 2019-09-15 12:19:07 +03:00
parent eadeb9d8b9
commit ae10961054
2 changed files with 1 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -32,7 +32,6 @@ async function getCross(cargoPath: string): Promise<string> {
return await io.which('cross', true); return await io.which('cross', true);
} catch (error) { } catch (error) {
core.debug('Unable to find cross, installing it now'); core.debug('Unable to find cross, installing it now');
throw error;
} }
// Somewhat new Rust is required to compile `cross` // Somewhat new Rust is required to compile `cross`