fix: tar command
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 53s
Continuous Integration / TypeScript Tests (push) Successful in 1m16s
Continuous Integration / GitHub Actions Test (push) Failing after 42s

This commit is contained in:
2024-11-17 12:06:02 +13:00
parent 24ecf016df
commit 5ef74b300c
3 changed files with 7 additions and 3 deletions

View File

@@ -39,7 +39,11 @@ export async function download(version: string): Promise<string> {
core.info(`Extracting Clang archive...`)
const extractedPath = await tc.extractTar(archivePath, undefined, 'xf')
const extractedPath = await tc.extractTar(
archivePath,
undefined,
'x --strip-components=1'
)
const cachedPath = await tc.cacheDir(extractedPath, 'clang', version)
return cachedPath