diff --git a/.github/workflows/backends.yml b/.github/workflows/backends.yml index f18f253..4cf6b5f 100644 --- a/.github/workflows/backends.yml +++ b/.github/workflows/backends.yml @@ -15,7 +15,10 @@ on: jobs: windows: runs-on: windows-latest - + + env: + VULKAN_VERSION: 1.3.261.1 + strategy: matrix: include: @@ -33,6 +36,8 @@ jobs: defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON' - build: 'rocm5' defines: '-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS="gfx1100;gfx1102;gfx1030" -DSD_BUILD_SHARED_LIBS=ON' + - build: 'vulkan' + defines: "-DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON" steps: - name: Checkout @@ -79,6 +84,15 @@ jobs: with: version: 1.11.1 + - name: Install Vulkan SDK + id: get_vulkan + if: ${{ matrix.build == 'vulkan' }} + run: | + curl.exe -o $env:RUNNER_TEMP/VulkanSDK-Installer.exe -L "https://sdk.lunarg.com/sdk/download/${env:VULKAN_VERSION}/windows/VulkanSDK-${env:VULKAN_VERSION}-Installer.exe" + & "$env:RUNNER_TEMP\VulkanSDK-Installer.exe" --accept-licenses --default-answer --confirm-command install + Add-Content $env:GITHUB_ENV "VULKAN_SDK=C:\VulkanSDK\${env:VULKAN_VERSION}" + Add-Content $env:GITHUB_PATH "C:\VulkanSDK\${env:VULKAN_VERSION}\bin" + - name: Build id: cmake_build run: | diff --git a/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec b/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec new file mode 100644 index 0000000..0f9057c --- /dev/null +++ b/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec @@ -0,0 +1,28 @@ + + + + StableDiffusion.NET.Backend.Vulkan + $version$ + StableDiffusion.NET.Backend.Vulkan + Darth Affe & stable-diffusion.cpp Authors + false + MIT + sd_net_vulkan.png + https://github.com/DarthAffe/StableDiffusion.NET + Vulkan-Backend for StableDiffusion.NET. + + Copyright © Darth Affe 2024 + readme.md + + + + + + + + + + + + + diff --git a/Backends/sd_net_vulkan.png b/Backends/sd_net_vulkan.png new file mode 100644 index 0000000..c6c8f4b Binary files /dev/null and b/Backends/sd_net_vulkan.png differ diff --git a/Resources/sd_net_icon.xcf b/Resources/sd_net_icon.xcf index a7d9992..910f404 100644 Binary files a/Resources/sd_net_icon.xcf and b/Resources/sd_net_icon.xcf differ