6969 with :
7070 submodules : recursive
7171
72- - name : Install cuda-toolkit
73- id : cuda-toolkit
74- if : ${{ matrix.build == 'cuda12' }}
75- 76- with :
77- cuda : " 12.2.0"
78- method : " network"
79- sub-packages : ' ["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
80-
81- - name : Install rocm-toolkit
82- id : rocm-toolkit
83- if : ${{ matrix.build == 'rocm5.5' }}
84- uses :
Cyberhan123/[email protected] 85- with :
86- rocm : " 5.5.0"
87-
88- - name : Install Ninja
89- id : install-ninja
90- if : ${{ matrix.build == 'rocm5.5' }}
91- uses : urkle/action-get-ninja@v1
92- with :
93- version : 1.11.1
9472 - name : Install Vulkan SDK
9573 id : get_vulkan
9674 if : ${{ matrix.build == 'vulkan' }}
@@ -107,20 +85,7 @@ jobs:
10785 cd build
10886 cmake .. ${{ matrix.defines }}
10987 cmake --build . --config Release
110-
111- - name : Check AVX512F support
112- id : check_avx512f
113- if : ${{ matrix.build == 'avx512' }}
114- continue-on-error : true
115- run : |
116- cd build
117- $vcdir = $(vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath)
118- $msvc = $(join-path $vcdir $('VC\Tools\MSVC\'+$(gc -raw $(join-path $vcdir 'VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt')).Trim()))
119- $cl = $(join-path $msvc 'bin\Hostx64\x64\cl.exe')
120- echo 'int main(void){unsigned int a[4];__cpuid(a,7);return !(a[1]&65536);}' >> avx512f.c
121- & $cl /O2 /GS- /kernel avx512f.c /link /nodefaultlib /entry:main
122- .\avx512f.exe && echo "AVX512F: YES" && ( echo HAS_AVX512F=1 >> $env:GITHUB_ENV ) || echo "AVX512F: NO"
123-
88+
12489 - name : Get commit hash
12590 id : commit
12691 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
@@ -146,23 +111,6 @@ jobs:
146111 }
147112 7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip $filePath
148113
149- - name : Copy and pack Cuda runtime
150- id : pack_cuda_runtime
151- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.build == 'cuda12' ) || github.event.inputs.create_release == 'true' }}
152- run : |
153- echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
154- $dst='.\build\bin\cudart\'
155- robocopy "${{steps.cuda-toolkit.outputs.CUDA_PATH}}\bin" $dst cudart64_*.dll cublas64_*.dll cublasLt64_*.dll
156- 7z a cudart-sd-bin-win-cu12-x64.zip $dst\*
157-
158- - name : Upload Cuda runtime
159- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.build == 'cuda12' ) || github.event.inputs.create_release == 'true' }}
160- uses : actions/upload-artifact@v4
161- with :
162- name : sd-cudart-sd-bin-win-cu12-x64.zip
163- path : |
164- cudart-sd-bin-win-cu12-x64.zip
165-
166114 - name : Upload artifacts
167115 if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
168116 uses : actions/upload-artifact@v4
0 commit comments