fix: archive extraction
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 1m2s
Continuous Integration / TypeScript Tests (push) Successful in 1m5s
Continuous Integration / GitHub Actions Test (push) Failing after 1m20s

This commit is contained in:
2024-11-17 12:01:17 +13:00
parent f31183b780
commit 24ecf016df
3 changed files with 4 additions and 4 deletions

4
dist/index.js generated vendored
View File

@@ -28308,14 +28308,14 @@ async function download(version) {
path = `clang+llvm-${version}-x86_64-pc-windows-msvc.tar.xz`;
break;
default:
path = `clang+llvm-${version}-aarch64-linux-gnu.tar.xz`;
path = `clang+llvm-${version}-x86_64-linux-gnu-ubuntu-18.04.tar.xz`;
break;
}
const url = `https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/${path}`;
core.info(`Downloading Clang ${version} (${process.platform}, ${process.arch}) from ${url} ...`);
const archivePath = await tc.downloadTool(url);
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);
return cachedPath;
}

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -39,7 +39,7 @@ export async function download(version: string): Promise<string> {
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)
return cachedPath