mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-21 23:49:33 +01:00
Remove temporary fix for Windows machines. (#32)
This commit is contained in:
parent
913235ca66
commit
a976a2e219
2 changed files with 2 additions and 12 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
File diff suppressed because one or more lines are too long
10
src/main.ts
10
src/main.ts
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue