mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-17 15:09:55 +08:00
WIP
This commit is contained in:
parent
6bc8f86bef
commit
582bd3adb6
11
.github/build_windows_packages.ps1
vendored
11
.github/build_windows_packages.ps1
vendored
@ -4,16 +4,23 @@ $workDir = $env:WORK_DIR
|
||||
Set-Location $workDir
|
||||
Get-ChildItem .
|
||||
|
||||
$today = Get-Date -Format "MMdd"
|
||||
|
||||
$cuda = $env:TORCH_CUDA
|
||||
if (-not $cuda) {
|
||||
Write-Error "Missing TORCH_CUDA env (cu124 or cu128)"
|
||||
exit 1
|
||||
}
|
||||
$pkgName = "GPT-SoVITS-$today"
|
||||
|
||||
$date = $env:DATE_SUFFIX
|
||||
if ($date -and $date.Trim() -ne "") {
|
||||
$date = Get-Date -Format "MMdd"
|
||||
}
|
||||
$pkgName = "GPT-SoVITS-$date"
|
||||
$tmpDir = "tmp"
|
||||
$srcDir = $PWD
|
||||
Write-Host $srcDir
|
||||
|
||||
$suffix = $env:PKG_SUFFIX
|
||||
if ($suffix -and $suffix.Trim() -ne "") {
|
||||
$pkgName = "$pkgName$suffix"
|
||||
}
|
||||
|
@ -3,6 +3,10 @@ name: Build and Upload Windows Package
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
date:
|
||||
description: "Date suffix (optional)"
|
||||
required: false
|
||||
default: ""
|
||||
suffix:
|
||||
description: "Package name suffix (optional)"
|
||||
required: false
|
||||
@ -20,6 +24,7 @@ jobs:
|
||||
MODELSCOPE_TOKEN: ${{ secrets.MODELSCOPE_TOKEN }}
|
||||
HUGGINGFACE_USERNAME: ${{ secrets.HUGGINGFACE_USERNAME }}
|
||||
HUGGINGFACE_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
|
||||
DATE_SUFFIX: ${{ github.event.inputs.suffix }}
|
||||
PKG_SUFFIX: ${{ github.event.inputs.suffix }}
|
||||
|
||||
steps:
|
||||
@ -30,6 +35,7 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$curr = Get-Location
|
||||
echo $curr
|
||||
echo "WORK_DIR=$curr" >> $env:GITHUB_ENV
|
||||
Move-Item .github/build_windows_packages.ps1 ../build_windows_packages.ps1
|
||||
Set-Location ../
|
||||
|
Loading…
x
Reference in New Issue
Block a user