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