From e9732e34d8cf26dcd38eabb7904b9c112007d8e9 Mon Sep 17 00:00:00 2001 From: Cory Bennett <32466081+Qonfused@users.noreply.github.com> Date: Mon, 26 Feb 2024 09:28:02 -0600 Subject: [PATCH] Fix build cleanup --- .github/scripts/run-builds.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/run-builds.ps1 b/.github/scripts/run-builds.ps1 index 127c183..4b73e50 100644 --- a/.github/scripts/run-builds.ps1 +++ b/.github/scripts/run-builds.ps1 @@ -27,7 +27,7 @@ foreach ($build in $buildList) { # Run build for each flag configuration foreach ($flags in $flagsList) { - Remove-Item dist -Force -Recurse -ErrorAction SilentlyContinue + $identifier = "$($flags -replace '--', '' -join '-')-$build" # Run build script $flags = $($flags -join ' ') @@ -35,8 +35,10 @@ foreach ($build in $buildList) { powershell.exe "$pwd\scripts\build.ps1" $flags # Compress EFI directory - $identifier = "$($flags -replace '--', '' -join '-')-$build" cp src\build.lock dist\EFI\OC\build.lock tar.exe -czf "EFI-$env:TAG-$identifier.zip" -C dist . + + # Cleanup + Remove-Item dist -Force -Recurse -ErrorAction SilentlyContinue } }