Remove temporary fix for Windows machines. (#32)

This commit is contained in:
Mieszko Grodzicki 2023-04-05 21:19:29 +02:00 committed by GitHub
parent 913235ca66
commit a976a2e219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,6 @@
import os = require("os"); import os = require("os");
import * as path from "path"; import * as path from "path";
import * as exec from "@actions/exec";
import * as core from "@actions/core"; import * as core from "@actions/core";
import * as github from "@actions/github"; import * as github from "@actions/github";
import * as io from "@actions/io"; import * as io from "@actions/io";
@ -78,15 +77,6 @@ async function installRustUp(): Promise<void> {
await rustup.call(["show"]); await rustup.call(["show"]);
await rustup.setProfile("minimal"); await rustup.setProfile("minimal");
await rustup.installToolchain("stable"); await rustup.installToolchain("stable");
// [TODO] Remove this temporary fix once the underlying issue is fixed.
if (os.platform() == "win32") {
try {
await exec.exec("mkdir C:\\Users\\runneradmin\\.cargo\\registry\\index");
} catch (error) {
core.info(`Failed to create registry index directory: ${getErrorMessage(error)}`);
}
}
} }
async function runCargoSemverChecks(cargo: rustCore.Cargo): Promise<void> { async function runCargoSemverChecks(cargo: rustCore.Cargo): Promise<void> {