Skip to content

Draft

Draft #4

name: Build and Upload Windows Package

Check failure on line 1 in .github/workflows/build_windows_packages.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_windows_packages.yaml

Invalid workflow file

(Line: 36, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'Jimver/cuda-toolkit'
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: [cu124, 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: Checkout
uses: actions/checkout@v4
- name: Install Windows CUDA 12.9
if: ${{ runner.os == 'Windows' && matrix.torch_cuda == '12.8' }}
uses: Jimver/cuda-toolkit
id: cuda-toolkit-win-129
with:
cuda: 12.9.1
method: "network"
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'
- name: Run Build and Upload Script
shell: pwsh
run: |
Move-Item .github/build_windows_packages.ps1 ../build_windows_packages.ps1
../build_windows_packages.ps1