mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-04 05:00:01 +08:00
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
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
|
|
default: ""
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
torch_cuda: [cu126, cu128]
|
|
env:
|
|
TORCH_CUDA: ${{ matrix.torch_cuda }}
|
|
MODELSCOPE_USERNAME: ${{ secrets.MODELSCOPE_USERNAME }}
|
|
MODELSCOPE_TOKEN: ${{ secrets.MODELSCOPE_TOKEN }}
|
|
HUGGINGFACE_USERNAME: ${{ secrets.HUGGINGFACE_USERNAME }}
|
|
HUGGINGFACE_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
|
|
DATE_SUFFIX: ${{ github.event.inputs.date }}
|
|
PKG_SUFFIX: ${{ github.event.inputs.suffix }}
|
|
|
|
steps:
|
|
- name: Install Windows CUDA 12.9
|
|
uses: Jimver/cuda-toolkit@v0.2.24
|
|
id: cuda-toolkit-win-129
|
|
with:
|
|
cuda: 12.9.0
|
|
method: "network"
|
|
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Cache pip
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~\AppData\Local\pip\Cache
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
|
|
- name: Run Build and Upload Script
|
|
shell: pwsh
|
|
run: |
|
|
Move-Item .github/build_windows_packages.ps1 ../build_windows_packages.ps1
|
|
../build_windows_packages.ps1 |