mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-24 00:49:34 +01:00
[TEMP-FIX] Add creating index directory on Windows (#9)
This commit is contained in:
parent
aa69e72300
commit
ea31db666e
4 changed files with 10 additions and 3 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
File diff suppressed because one or more lines are too long
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -11,6 +11,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions-rs/core": "^0.1.6",
|
"@actions-rs/core": "^0.1.6",
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/github": "^5.1.1",
|
||||||
"@actions/io": "^1.1.2",
|
"@actions/io": "^1.1.2",
|
||||||
"@actions/tool-cache": "^2.0.1",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/github": "^5.1.1",
|
||||||
"@actions/io": "^1.1.2",
|
"@actions/io": "^1.1.2",
|
||||||
"@actions/tool-cache": "^2.0.1",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@types/node-fetch": "^2.6.2"
|
"@types/node-fetch": "^2.6.2",
|
||||||
|
"@actions/exec": "^1.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.11.18",
|
"@types/node": "^18.11.18",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import os = require('os');
|
import os = require('os');
|
||||||
|
|
||||||
|
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';
|
||||||
|
@ -63,6 +64,10 @@ 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')
|
||||||
|
exec.exec('mkdir C:\\Users\\runneradmin\\.cargo\\registry\\index');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runCargoSemverChecks(cargo: rustCore.Cargo): Promise<void> {
|
async function runCargoSemverChecks(cargo: rustCore.Cargo): Promise<void> {
|
||||||
|
|
Loading…
Reference in a new issue