From c5f5da5693a6da7e6c84a233262b24a9f7776247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 15 Aug 2019 23:26:18 +0200 Subject: [PATCH] Update to ensure latest version of toolchain --- action.yml | 2 +- lib/main.js | 1 + src/main.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7ca9ea0..4f7cc69 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/lib/main.js b/lib/main.js index 69f5a75..76d52c0 100644 --- a/lib/main.js +++ b/lib/main.js @@ -25,6 +25,7 @@ function run() { if (version) { yield rustup.install(version); exec.exec('rustup', ['default', version]); + exec.exec('rustup', ['update', version]); } } catch (error) { diff --git a/src/main.ts b/src/main.ts index 4db632a..3984b4d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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);