This commit is contained in:
XXXXRT666 2025-05-14 03:07:17 +01:00
parent aa665c40f9
commit 141195edca
2 changed files with 2 additions and 11 deletions

View File

@ -1,12 +1,6 @@
param (
[string]$workDir
)
$ErrorActionPreference = "Stop"
Set-Location -Path $workDir
Write-Host "Current location: $(Get-Location)"
Get-ChildItem .
$cuda = $env:TORCH_CUDA
if (-not $cuda) {
@ -140,7 +134,7 @@ Remove-Item $items -Force -Recurse -ErrorAction SilentlyContinue
$curr = Get-Location
Set-Location ../
Get-ChildItem .
Rename-Item -Path $curr -NewName $pkgName
Copy-Item -Path $curr -Destination $pkgName -Recurse
& "C:\Program Files\7-Zip\7z.exe" a -tzip "$zipPath" "$pkgName" -mx=5 -bsp1
python -m pip install --upgrade pip

View File

@ -34,8 +34,5 @@ jobs:
- name: Run Build and Upload Script
shell: pwsh
run: |
$curr = Get-Location
Move-Item .github/build_windows_packages.ps1 ../build_windows_packages.ps1
Set-Location ../
Get-ChildItem .
./build_windows_packages.ps1 -workDir $curr.Path
../build_windows_packages.ps1