mirror of https://github.com/aminya/setup-cpp
fix: fix llvm 15 on ubuntu - add logging for extraction
This commit is contained in:
parent
0e9ce85be9
commit
bd369094f9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
import { find, downloadTool, cacheDir } from "@actions/tool-cache"
|
import { find, downloadTool, cacheDir } from "@actions/tool-cache"
|
||||||
import { info } from "@actions/core"
|
|
||||||
import { addPath } from "../env/addEnv"
|
import { addPath } from "../env/addEnv"
|
||||||
import { join } from "patha"
|
import { join } from "patha"
|
||||||
|
import { info } from "ci-log"
|
||||||
|
|
||||||
import { tmpdir } from "os"
|
import { tmpdir } from "os"
|
||||||
import ciDetect from "@npmcli/ci-detect"
|
import ciDetect from "@npmcli/ci-detect"
|
||||||
|
@ -89,11 +89,13 @@ export async function setupBin(
|
||||||
|
|
||||||
// download ane extract the package into the installation directory.
|
// download ane extract the package into the installation directory.
|
||||||
if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {
|
if ((await Promise.all([pathExists(binDir), pathExists(binFile)])).includes(false)) {
|
||||||
info(`Download and extract ${name} ${version}`)
|
try {
|
||||||
|
info(`Download ${name} ${version}`)
|
||||||
|
const downloaded = await downloadTool(url)
|
||||||
|
|
||||||
if (!didInit) {
|
if (!didInit) {
|
||||||
|
info(`Installing extraction dependencies`)
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
// extraction dependencies
|
|
||||||
if (isArch()) {
|
if (isArch()) {
|
||||||
setupPacmanPack("unzip")
|
setupPacmanPack("unzip")
|
||||||
setupPacmanPack("tar")
|
setupPacmanPack("tar")
|
||||||
|
@ -110,8 +112,7 @@ export async function setupBin(
|
||||||
didInit = true
|
didInit = true
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
info(`Extracting ${downloaded} to ${setupDir}`)
|
||||||
const downloaded = await downloadTool(url)
|
|
||||||
await extractFunction?.(downloaded, setupDir)
|
await extractFunction?.(downloaded, setupDir)
|
||||||
// if (typeof extractedBinDir === "string") {
|
// if (typeof extractedBinDir === "string") {
|
||||||
// binDir = extractedBinDir
|
// binDir = extractedBinDir
|
||||||
|
|
|
@ -30,24 +30,24 @@ export const DefaultLinuxVersion: Record<string, Record<number, string>> = {
|
||||||
14: "11",
|
14: "11",
|
||||||
},
|
},
|
||||||
llvm: {
|
llvm: {
|
||||||
22: "15.0.6-ubuntu-18.0.4",
|
22: "15.0.6-ubuntu-18.04",
|
||||||
20: "15.0.6-ubuntu-18.0.4",
|
20: "15.0.6-ubuntu-18.04",
|
||||||
18: "15.0.6-ubuntu-18.0.4",
|
18: "15.0.6-ubuntu-18.04",
|
||||||
16: "15.0.6-ubuntu-18.0.4",
|
16: "15.0.6-ubuntu-18.04",
|
||||||
14: "13.0.0-ubuntu-16.04",
|
14: "13.0.0-ubuntu-16.04",
|
||||||
},
|
},
|
||||||
clangtidy: {
|
clangtidy: {
|
||||||
22: "15.0.6-ubuntu-18.0.4",
|
22: "15.0.6-ubuntu-18.04",
|
||||||
20: "15.0.6-ubuntu-18.0.4",
|
20: "15.0.6-ubuntu-18.04",
|
||||||
18: "15.0.6-ubuntu-18.0.4",
|
18: "15.0.6-ubuntu-18.04",
|
||||||
16: "15.0.6-ubuntu-18.0.4",
|
16: "15.0.6-ubuntu-18.04",
|
||||||
14: "13.0.0-ubuntu-16.04",
|
14: "13.0.0-ubuntu-16.04",
|
||||||
},
|
},
|
||||||
clangformat: {
|
clangformat: {
|
||||||
22: "15.0.6-ubuntu-18.0.4",
|
22: "15.0.6-ubuntu-18.04",
|
||||||
20: "15.0.6-ubuntu-18.0.4",
|
20: "15.0.6-ubuntu-18.04",
|
||||||
18: "15.0.6-ubuntu-18.0.4",
|
18: "15.0.6-ubuntu-18.04",
|
||||||
16: "15.0.6-ubuntu-18.0.4",
|
16: "15.0.6-ubuntu-18.04",
|
||||||
14: "13.0.0-ubuntu-16.04",
|
14: "13.0.0-ubuntu-16.04",
|
||||||
},
|
},
|
||||||
gcovr: {
|
gcovr: {
|
||||||
|
|
Loading…
Reference in New Issue