|
10 | 10 | description: 'Whether FT Python or not. Valid value is "ft" or not.' |
11 | 11 | default: '' |
12 | 12 | type: string |
| 13 | + cuda-version: |
| 14 | + required: true |
| 15 | + type: string |
| 16 | + use-nvdec: |
| 17 | + default: "nvdec" |
| 18 | + type: string |
| 19 | + description: 'Whether build NVDEC extension. Valid value is "nvdec" or not.' |
13 | 20 | run-test: |
14 | 21 | required: false |
15 | 22 | default: 'false' |
|
20 | 27 |
|
21 | 28 | env: |
22 | 29 | ARTIFACT: wheel-win-py${{ inputs.python-version }}${{ inputs.free-threaded }} |
| 30 | + SPDL_USE_TRACING: 0 |
| 31 | + SPDL_USE_CUDA: 1 |
| 32 | + SPDL_USE_NVDEC: "${{ inputs.use-nvdec == 'nvdec' }}" |
23 | 33 |
|
24 | 34 | jobs: |
25 | 35 | build: |
26 | | - runs-on: "${{ inputs.os }}" |
27 | | - steps: |
| 36 | + runs-on: "${{ inputs.os }}" |
| 37 | + steps: |
28 | 38 | - uses: actions/checkout@v4 |
29 | 39 | with: |
30 | 40 | persist-credentials: false |
31 | 41 |
|
| 42 | + - name: Install Cuda Toolkit 12.4 on Windows |
| 43 | + run: | |
| 44 | + mkdir -p "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" |
| 45 | + choco install unzip -y |
| 46 | + curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_cudart/windows-x86_64/cuda_cudart-windows-x86_64-12.4.127-archive.zip" |
| 47 | + curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/windows-x86_64/cuda_nvcc-windows-x86_64-12.4.131-archive.zip" |
| 48 | + curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/windows-x86_64/cuda_nvrtc-windows-x86_64-12.4.127-archive.zip" |
| 49 | + # curl -O "https://developer.download.nvidia.com/compute/cuda/redist/libcublas/windows-x86_64/libcublas-windows-x86_64-12.4.5.8-archive.zip" |
| 50 | + # curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvtx/windows-x86_64/cuda_nvtx-windows-x86_64-12.4.127-archive.zip" |
| 51 | + # curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_profiler_api/windows-x86_64/cuda_profiler_api-windows-x86_64-12.4.127-archive.zip" |
| 52 | + curl -O "https://developer.download.nvidia.com/compute/cuda/redist/visual_studio_integration/windows-x86_64/visual_studio_integration-windows-x86_64-12.4.127-archive.zip" |
| 53 | + # curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvprof/windows-x86_64/cuda_nvprof-windows-x86_64-12.4.127-archive.zip" |
| 54 | + # curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_cccl/windows-x86_64/cuda_cccl-windows-x86_64-12.4.127-archive.zip" |
| 55 | + unzip '*.zip' -d "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" |
| 56 | + xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_cudart-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 57 | + xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_nvcc-windows-x86_64-12.4.131-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 58 | + xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_nvrtc-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 59 | + # xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libcublas-windows-x86_64-12.4.5.8-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 60 | + # xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_nvtx-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 61 | + # xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_profiler_api-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 62 | + xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\visual_studio_integration-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 63 | + # xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_nvprof-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 64 | + # xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\cuda_cccl-windows-x86_64-12.4.127-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" /E /I /H /Y |
| 65 | +
|
| 66 | + # Default installation path for CUDA Toolkit is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4 |
| 67 | + - name: Add Path |
| 68 | + run: | |
| 69 | + echo "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.4\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 70 | + echo "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\libnvvp" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 71 | + echo "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 |
| 72 | + echo "CUDA_PATH_V12_4=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 |
| 73 | +
|
32 | 74 | - name: Build |
33 | | - env: |
34 | | - SPDL_USE_TRACING: 0 |
35 | | - SPDL_BUILD_STUB: 0 |
36 | 75 | shell: cmd |
37 | 76 | run: | |
38 | 77 | packaging/vc_env_helper.bat ^ |
|
57 | 96 | bash ^ |
58 | 97 | .github/scripts/check_package.sh |
59 | 98 |
|
60 | | - unit-test: |
| 99 | + test-cpu: |
61 | 100 | if: "${{ inputs.run-test == 'true' }}" |
62 | | - name: "test ffmpeg" |
| 101 | + name: "test-cpu ffmpeg ${{ matrix.ffmpeg-version }}" |
63 | 102 | needs: ["build"] |
64 | 103 | strategy: |
65 | 104 | fail-fast: false |
|
0 commit comments