ci: Remove dependency archives immediately after extraction
This keeps the work directory cleaner while a CI job runs.
This commit is contained in:
parent
ad483258f3
commit
b7c067c214
@ -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) {
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -13,3 +13,4 @@ if ($hash.Hash -ne $sha256sum) {
|
||||
}
|
||||
|
||||
Expand-Archive -Path "$outdir\$tarball" -DestinationPath "$outdir\jom"
|
||||
Remove-Item "$outdir\$tarball"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user