ci: Remove dependency archives immediately after extraction

This keeps the work directory cleaner while a CI job runs.
This commit is contained in:
Brad King 2024-06-14 11:17:53 -04:00
parent ad483258f3
commit b7c067c214
12 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,7 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Move-Item -Path "$outdir\$filename" -Destination "$outdir\bcc"
Remove-Item "$outdir\$tarball"
$tools = "bcc32", "ilink32"
foreach ($tool in $tools) {

View File

@ -23,6 +23,7 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Move-Item -Path "$outdir\$filename" -Destination "$outdir\llvm"
Remove-Item "$outdir\$tarball"
$bin = "$outdir\llvm\bin"
$lib = "$outdir\llvm\lib"

View File

@ -27,3 +27,4 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Move-Item -Path "$outdir\$filename" -Destination "$outdir\cmake"
Remove-Item "$outdir\$tarball"

View File

@ -39,6 +39,7 @@ curl -OL "https://github.com/Kitware/CMake/releases/download/v$version/$tarball"
$shatool --check cmake.sha256sum
tar xf "$tarball"
mv "$filename" cmake
rm "$tarball" cmake.sha256sum
if [ "$( uname -s )" = "Darwin" ]; then
ln -s CMake.app/Contents/bin cmake/bin

View File

@ -122,6 +122,7 @@ foreach (qt_file IN LISTS qt_files)
message(FATAL_ERROR
"Failed to extract ${qt_file}: ${err}")
endif ()
file(REMOVE "${qt_file}")
endforeach ()
# The Windows tarballs have some unfortunate permissions in them that prevent

View File

@ -17,3 +17,4 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Move-Item -Path "$outdir\$filename" -Destination "$outdir\ispc"
Remove-Item "$outdir\$tarball"

View File

@ -39,3 +39,4 @@ curl -OL "https://github.com/ispc/ispc/releases/download/v$version/$tarball"
$shatool --check ispc.sha256sum
tar xf "$tarball"
mv "$filename" ispc
rm "$tarball" ispc.sha256sum

View File

@ -13,3 +13,4 @@ if ($hash.Hash -ne $sha256sum) {
}
Expand-Archive -Path "$outdir\$tarball" -DestinationPath "$outdir\jom"
Remove-Item "$outdir\$tarball"

View File

@ -23,6 +23,7 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Move-Item -Path "$outdir\$filename" -Destination "$outdir\msvc"
Remove-Item "$outdir\$tarball"
$bat = Get-Content -path "$outdir\msvc\$vcvars.in" -Raw
$bat = $bat -replace "@VS_ROOT@","$outdir\msvc"

View File

@ -21,3 +21,4 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Remove-Item "$outdir\$tarball"

View File

@ -43,3 +43,4 @@ echo "$sha256sum $tarball" > ninja.sha256sum
curl -OL "$baseurl/$tarball"
$shatool --check ninja.sha256sum
./cmake/bin/cmake -E tar xf "$tarball"
rm "$tarball" ninja.sha256sum

View File

@ -23,3 +23,4 @@ if ($hash.Hash -ne $sha256sum) {
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$outdir\$tarball", "$outdir")
Move-Item -Path "$outdir\$filename" -Destination "$outdir\watcom"
Remove-Item "$outdir\$tarball"