Update to ensure latest version of toolchain
This commit is contained in:
parent
7b201a613e
commit
c5f5da5693
@ -4,7 +4,7 @@ author: 'Héctor Ramón'
|
|||||||
inputs:
|
inputs:
|
||||||
rust-version:
|
rust-version:
|
||||||
description: 'The toolchain name, such as stable, nighly, or 1.8.0'
|
description: 'The toolchain name, such as stable, nighly, or 1.8.0'
|
||||||
default: '1.37.0'
|
default: 'stable'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'lib/main.js'
|
main: 'lib/main.js'
|
||||||
|
@ -25,6 +25,7 @@ function run() {
|
|||||||
if (version) {
|
if (version) {
|
||||||
yield rustup.install(version);
|
yield rustup.install(version);
|
||||||
exec.exec('rustup', ['default', version]);
|
exec.exec('rustup', ['default', version]);
|
||||||
|
exec.exec('rustup', ['update', version]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
@ -11,6 +11,7 @@ async function run() {
|
|||||||
await rustup.install(version);
|
await rustup.install(version);
|
||||||
|
|
||||||
exec.exec('rustup', ['default', version]);
|
exec.exec('rustup', ['default', version]);
|
||||||
|
exec.exec('rustup', ['update', version]);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
Loading…
Reference in New Issue
Block a user