Update to ensure latest version of toolchain

This commit is contained in:
Héctor Ramón Jiménez 2019-08-15 23:26:18 +02:00
parent 7b201a613e
commit c5f5da5693
3 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ author: 'Héctor Ramón'
inputs:
rust-version:
description: 'The toolchain name, such as stable, nighly, or 1.8.0'
default: '1.37.0'
default: 'stable'
runs:
using: 'node12'
main: 'lib/main.js'

View File

@ -25,6 +25,7 @@ function run() {
if (version) {
yield rustup.install(version);
exec.exec('rustup', ['default', version]);
exec.exec('rustup', ['update', version]);
}
}
catch (error) {

View File

@ -11,6 +11,7 @@ async function run() {
await rustup.install(version);
exec.exec('rustup', ['default', version]);
exec.exec('rustup', ['update', version]);
}
} catch (error) {
core.setFailed(error.message);