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: 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'

View File

@ -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) {

View File

@ -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);