99 type : boolean
1010 push :
1111 branches :
12- - master
12+ - dreamio
1313 - ci
1414 paths :
1515 [
@@ -78,14 +78,14 @@ jobs:
7878
7979 - name : Pack artifacts
8080 id : pack_artifacts
81- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
81+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
8282 run : |
8383 cp ggml/LICENSE ./build/bin/ggml.txt
8484 cp LICENSE ./build/bin/stable-diffusion.cpp.txt
8585 zip -j sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip ./build/bin/*
8686
8787 - name : Upload artifacts
88- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
88+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
8989 uses : actions/upload-artifact@v4
9090 with :
9191 name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip
@@ -131,22 +131,22 @@ jobs:
131131
132132 - name : Pack artifacts
133133 id : pack_artifacts
134- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
134+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
135135 run : |
136136 cp ggml/LICENSE ./build/bin/ggml.txt
137137 cp LICENSE ./build/bin/stable-diffusion.cpp.txt
138138 zip -j sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip ./build/bin/*
139139
140140 - name : Upload artifacts
141- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
141+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
142142 uses : actions/upload-artifact@v4
143143 with :
144144 name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip
145145 path : |
146146 sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-${{ steps.system-info.outputs.OS_NAME }}-${{ steps.system-info.outputs.OS_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}.zip
147147
148148 windows-latest-cmake :
149- runs-on : windows-2025
149+ runs-on : windows-2022
150150
151151 env :
152152 VULKAN_VERSION : 1.4.328.1
@@ -163,9 +163,13 @@ jobs:
163163 - build : " avx512"
164164 defines : " -DGGML_NATIVE=OFF -DGGML_AVX512=ON -DGGML_AVX=ON -DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON"
165165 - build : " cuda12"
166- defines : " -DSD_CUDA=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_ARCHITECTURES=90;89;86;80;75"
166+ defines : " -DSD_CUDA=ON -DSD_BUILD_SHARED_LIBS=ON"
167+ - build : " cuda12-noavx"
168+ defines : " -DGGML_NATIVE=OFF -DSD_CUDA=ON -DGGML_AVX=OFF -DGGML_AVX2=OFF -DGGML_FMA=OFF -DSD_BUILD_SHARED_LIBS=ON"
167169 - build : ' vulkan'
168170 defines : " -DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON"
171+ - build : ' vulkan-noavx'
172+ defines : " -DGGML_NATIVE=OFF -DSD_VULKAN=ON -DGGML_AVX=OFF -DGGML_AVX2=OFF -DGGML_FMA=OFF -DSD_BUILD_SHARED_LIBS=ON"
169173 steps :
170174 - name : Clone
171175 id : checkout
@@ -175,16 +179,16 @@ jobs:
175179
176180 - name : Install cuda-toolkit
177181 id : cuda-toolkit
178- if : ${{ matrix.build == 'cuda12' }}
182+ if : ${{ matrix.build == 'cuda12' || matrix.build == 'cuda12-noavx' }}
179183180184 with :
181- cuda : " 12.6.2 "
185+ cuda : " 12.4.0 "
182186 method : " network"
183187 sub-packages : ' ["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]'
184188
185189 - name : Install Vulkan SDK
186190 id : get_vulkan
187- if : ${{ matrix.build == 'vulkan' }}
191+ if : ${{ matrix.build == 'vulkan' || matrix.build == 'vulkan-noavx' }}
188192 run : |
189193 curl.exe -o $env:RUNNER_TEMP/VulkanSDK-Installer.exe -L "https://sdk.lunarg.com/sdk/download/${env:VULKAN_VERSION}/windows/vulkansdk-windows-X64-${env:VULKAN_VERSION}.exe"
190194 & "$env:RUNNER_TEMP\VulkanSDK-Installer.exe" --accept-licenses --default-answer --confirm-command install
@@ -214,12 +218,12 @@ jobs:
214218
215219 - name : Get commit hash
216220 id : commit
217- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
221+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
218222 uses : pr-mpt/actions-commit-hash@v2
219223
220224 - name : Pack artifacts
221225 id : pack_artifacts
222- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
226+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
223227 run : |
224228 $filePath = ".\build\bin\Release\*"
225229 if (Test-Path $filePath) {
@@ -239,23 +243,23 @@ jobs:
239243
240244 - name : Copy and pack Cuda runtime
241245 id : pack_cuda_runtime
242- if : ${{ matrix.build == 'cuda12' && (github.event_name == 'push' && github.ref == 'refs/heads/master ' || github.event.inputs.create_release == 'true') }}
246+ if : ${{ matrix.build == 'cuda12' && (github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' || github.event.inputs.create_release == 'true') }}
243247 run : |
244248 echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
245249 $dst='.\build\bin\cudart\'
246250 robocopy "${{steps.cuda-toolkit.outputs.CUDA_PATH}}\bin" $dst cudart64_*.dll cublas64_*.dll cublasLt64_*.dll
247251 7z a cudart-sd-bin-win-cu12-x64.zip $dst\*
248252
249253 - name : Upload Cuda runtime
250- if : ${{ matrix.build == 'cuda12' && (github.event_name == 'push' && github.ref == 'refs/heads/master ' || github.event.inputs.create_release == 'true') }}
254+ if : ${{ matrix.build == 'cuda12' && (github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' || github.event.inputs.create_release == 'true') }}
251255 uses : actions/upload-artifact@v4
252256 with :
253257 name : sd-cudart-sd-bin-win-cu12-x64.zip
254258 path : |
255259 cudart-sd-bin-win-cu12-x64.zip
256260
257261 - name : Upload artifacts
258- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
262+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
259263 uses : actions/upload-artifact@v4
260264 with :
261265 name : sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip
@@ -361,7 +365,7 @@ jobs:
361365 sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-rocm-x64.zip
362366
363367 release :
364- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master ' ) || github.event.inputs.create_release == 'true' }}
368+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/dreamio ' ) || github.event.inputs.create_release == 'true' }}
365369
366370 runs-on : ubuntu-latest
367371
@@ -396,7 +400,7 @@ jobs:
396400
397401 - name : Create release
398402 id : create_release
399- if : ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'master ' }}
403+ if : ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dreamio ' }}
400404 uses : anzz1/action-create-release@v1
401405 env :
402406 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -405,7 +409,7 @@ jobs:
405409
406410 - name : Upload release
407411 id : upload_release
408- if : ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'master ' }}
412+ if : ${{ github.event_name == 'workflow_dispatch' || github.ref_name == 'dreamio ' }}
409413 uses : actions/github-script@v3
410414 with :
411415 github-token : ${{secrets.GITHUB_TOKEN}}
0 commit comments