fix: archive extraction
This commit is contained in:
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@@ -28308,14 +28308,14 @@ async function download(version) {
|
|||||||
path = `clang+llvm-${version}-x86_64-pc-windows-msvc.tar.xz`;
|
path = `clang+llvm-${version}-x86_64-pc-windows-msvc.tar.xz`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
path = `clang+llvm-${version}-aarch64-linux-gnu.tar.xz`;
|
path = `clang+llvm-${version}-x86_64-linux-gnu-ubuntu-18.04.tar.xz`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
const url = `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${path}`;
|
const url = `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${path}`;
|
||||||
core.info(`Downloading Clang ${version} (${process.platform}, ${process.arch}) from ${url} ...`);
|
core.info(`Downloading Clang ${version} (${process.platform}, ${process.arch}) from ${url} ...`);
|
||||||
const archivePath = await tc.downloadTool(url);
|
const archivePath = await tc.downloadTool(url);
|
||||||
core.info(`Extracting Clang archive...`);
|
core.info(`Extracting Clang archive...`);
|
||||||
const extractedPath = await tc.extractTar(archivePath);
|
const extractedPath = await tc.extractTar(archivePath, undefined, 'xf');
|
||||||
const cachedPath = await tc.cacheDir(extractedPath, 'clang', version);
|
const cachedPath = await tc.cacheDir(extractedPath, 'clang', version);
|
||||||
return cachedPath;
|
return cachedPath;
|
||||||
}
|
}
|
||||||
|
|||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -39,7 +39,7 @@ export async function download(version: string): Promise<string> {
|
|||||||
|
|
||||||
core.info(`Extracting Clang archive...`)
|
core.info(`Extracting Clang archive...`)
|
||||||
|
|
||||||
const extractedPath = await tc.extractTar(archivePath)
|
const extractedPath = await tc.extractTar(archivePath, undefined, 'xf')
|
||||||
const cachedPath = await tc.cacheDir(extractedPath, 'clang', version)
|
const cachedPath = await tc.cacheDir(extractedPath, 'clang', version)
|
||||||
|
|
||||||
return cachedPath
|
return cachedPath
|
||||||
|
|||||||
Reference in New Issue
Block a user