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 { info } from "@actions/core"
|
||||
import { addPath } from "../env/addEnv"
|
||||
import { join } from "patha"
|
||||
import { info } from "ci-log"
|
||||
|
||||
import { tmpdir } from "os"
|
||||
import ciDetect from "@npmcli/ci-detect"
|
||||
|
@ -89,11 +89,13 @@ export async function setupBin(
|
|||
|
||||
// download ane extract the package into the installation directory.
|
||||
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) {
|
||||
info(`Installing extraction dependencies`)
|
||||
if (process.platform === "linux") {
|
||||
// extraction dependencies
|
||||
if (isArch()) {
|
||||
setupPacmanPack("unzip")
|
||||
setupPacmanPack("tar")
|
||||
|
@ -110,8 +112,7 @@ export async function setupBin(
|
|||
didInit = true
|
||||
}
|
||||
|
||||
try {
|
||||
const downloaded = await downloadTool(url)
|
||||
info(`Extracting ${downloaded} to ${setupDir}`)
|
||||
await extractFunction?.(downloaded, setupDir)
|
||||
// if (typeof extractedBinDir === "string") {
|
||||
// binDir = extractedBinDir
|
||||
|
|
|
@ -30,24 +30,24 @@ export const DefaultLinuxVersion: Record<string, Record<number, string>> = {
|
|||
14: "11",
|
||||
},
|
||||
llvm: {
|
||||
22: "15.0.6-ubuntu-18.0.4",
|
||||
20: "15.0.6-ubuntu-18.0.4",
|
||||
18: "15.0.6-ubuntu-18.0.4",
|
||||
16: "15.0.6-ubuntu-18.0.4",
|
||||
22: "15.0.6-ubuntu-18.04",
|
||||
20: "15.0.6-ubuntu-18.04",
|
||||
18: "15.0.6-ubuntu-18.04",
|
||||
16: "15.0.6-ubuntu-18.04",
|
||||
14: "13.0.0-ubuntu-16.04",
|
||||
},
|
||||
clangtidy: {
|
||||
22: "15.0.6-ubuntu-18.0.4",
|
||||
20: "15.0.6-ubuntu-18.0.4",
|
||||
18: "15.0.6-ubuntu-18.0.4",
|
||||
16: "15.0.6-ubuntu-18.0.4",
|
||||
22: "15.0.6-ubuntu-18.04",
|
||||
20: "15.0.6-ubuntu-18.04",
|
||||
18: "15.0.6-ubuntu-18.04",
|
||||
16: "15.0.6-ubuntu-18.04",
|
||||
14: "13.0.0-ubuntu-16.04",
|
||||
},
|
||||
clangformat: {
|
||||
22: "15.0.6-ubuntu-18.0.4",
|
||||
20: "15.0.6-ubuntu-18.0.4",
|
||||
18: "15.0.6-ubuntu-18.0.4",
|
||||
16: "15.0.6-ubuntu-18.0.4",
|
||||
22: "15.0.6-ubuntu-18.04",
|
||||
20: "15.0.6-ubuntu-18.04",
|
||||
18: "15.0.6-ubuntu-18.04",
|
||||
16: "15.0.6-ubuntu-18.04",
|
||||
14: "13.0.0-ubuntu-16.04",
|
||||
},
|
||||
gcovr: {
|
||||
|
|
Loading…
Reference in New Issue