Output rustc, cargo and rustup versions as Action outputs (#47)

This commit is contained in:
svartalf 2020-01-26 18:18:21 +03:00 committed by GitHub
parent ad7f1a0189
commit 5d50a12f35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 95 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import * as io from '@actions/io';
import path from "path";
import * as args from './args';
import * as versions from './versions';
import {RustUp, ToolchainOptions} from '@actions-rs/core';
async function run() {
@ -52,6 +53,8 @@ async function run() {
if (opts.target) {
await rustup.addTarget(opts.target, opts.name);
}
await versions.gatherInstalledVersions();
}
async function main() {