Skip to content

Commit

Permalink
Fix build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Qonfused committed Feb 26, 2024
1 parent ff1e1b7 commit e9732e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/run-builds.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ 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 ' ')
Write-Host "Starting $build build with flags: $flags"
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
}
}

0 comments on commit e9732e3

Please sign in to comment.