mirror of https://github.com/aminya/setup-cpp
fix: fix cmake installation on linux
This commit is contained in:
parent
1239cfc4a6
commit
a3c53e221f
|
@ -2,7 +2,7 @@ import { setupCmake } from "../cmake"
|
||||||
import { spawnSync as spawn } from "child_process"
|
import { spawnSync as spawn } from "child_process"
|
||||||
import { setupTmpDir, cleanupTmpDir } from "../../utils/tests/test-helpers"
|
import { setupTmpDir, cleanupTmpDir } from "../../utils/tests/test-helpers"
|
||||||
|
|
||||||
jest.setTimeout(30 * 1000)
|
jest.setTimeout(100000)
|
||||||
|
|
||||||
describe("setup-cmake", () => {
|
describe("setup-cmake", () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
|
|
@ -48,7 +48,7 @@ function getCmakePackageInfo(version: string, platform?: NodeJS.Platform): Packa
|
||||||
const folderName = `cmake-${version}-${osArchStr}`
|
const folderName = `cmake-${version}-${osArchStr}`
|
||||||
return {
|
return {
|
||||||
binRelativeDir: "bin/",
|
binRelativeDir: "bin/",
|
||||||
extractedFolderName: ".tar.gz",
|
extractedFolderName: folderName,
|
||||||
extractFunction: extractTar,
|
extractFunction: extractTar,
|
||||||
url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,
|
url: `https://github.com/Kitware/CMake/releases/download/v${version}/${folderName}.tar.gz`,
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { setupNinja } from "../ninja"
|
||||||
import { spawnSync as spawn } from "child_process"
|
import { spawnSync as spawn } from "child_process"
|
||||||
import { setupTmpDir, cleanupTmpDir } from "../../utils/tests/test-helpers"
|
import { setupTmpDir, cleanupTmpDir } from "../../utils/tests/test-helpers"
|
||||||
|
|
||||||
jest.setTimeout(30 * 1000)
|
jest.setTimeout(100000)
|
||||||
|
|
||||||
describe("setup-ninja", () => {
|
describe("setup-ninja", () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
|
Loading…
Reference in New Issue