|
30 | 30 | defines: '-DGGML_AVX2=ON -DSD_BUILD_SHARED_LIBS=ON'
|
31 | 31 | - build: 'avx512'
|
32 | 32 | defines: '-DGGML_AVX512=ON -DSD_BUILD_SHARED_LIBS=ON'
|
33 |
| - - build: 'cuda11' |
34 |
| - defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"' |
35 | 33 | - build: 'cuda12'
|
36 | 34 | defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON'
|
37 | 35 | - build: 'rocm5'
|
|
48 | 46 | ref: '${{ github.event.inputs.commit }}'
|
49 | 47 | submodules: recursive
|
50 | 48 |
|
51 |
| - - name: Install cuda-toolkit |
52 |
| - id: cuda-toolkit-11 |
53 |
| - if: ${{ matrix.build == 'cuda11' }} |
54 |
| - |
55 |
| - with: |
56 |
| - cuda: '11.8.0' |
57 |
| - method: network |
58 |
| - sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]' |
59 |
| - use-github-cache: false |
60 |
| - use-local-cache: false |
61 |
| - |
62 | 49 | - name: Install cuda-toolkit
|
63 | 50 | id: cuda-toolkit-12
|
64 | 51 | if: ${{ matrix.build == 'cuda12' }}
|
@@ -116,6 +103,51 @@ jobs:
|
116 | 103 | with:
|
117 | 104 | name: windows-${{ matrix.build }}
|
118 | 105 | path: .\build\bin\stable-diffusion.dll
|
| 106 | + |
| 107 | + windows-2019: |
| 108 | + runs-on: windows-2019 |
| 109 | + |
| 110 | + strategy: |
| 111 | + matrix: |
| 112 | + include: |
| 113 | + - build: 'cuda11' |
| 114 | + defines: '-DSD_CUBLAS=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"' |
| 115 | + |
| 116 | + steps: |
| 117 | + - name: Checkout |
| 118 | + id: checkout |
| 119 | + |
| 120 | + with: |
| 121 | + repository: 'leejet/stable-diffusion.cpp' |
| 122 | + ref: '${{ github.event.inputs.commit }}' |
| 123 | + submodules: recursive |
| 124 | + |
| 125 | + - name: Install cuda-toolkit |
| 126 | + id: cuda-toolkit-11 |
| 127 | + if: ${{ matrix.build == 'cuda11' }} |
| 128 | + |
| 129 | + with: |
| 130 | + cuda: '11.8.0' |
| 131 | + method: network |
| 132 | + sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "thrust", "visual_studio_integration"]' |
| 133 | + use-github-cache: false |
| 134 | + use-local-cache: false |
| 135 | + |
| 136 | + - name: Build |
| 137 | + id: cmake_build |
| 138 | + run: | |
| 139 | + mkdir build |
| 140 | + cd build |
| 141 | + cmake .. ${{ matrix.defines }} |
| 142 | + cmake --build . --config Release |
| 143 | + |
| 144 | + - name: Upload artifact |
| 145 | + id: upload_artifact |
| 146 | + if: ${{ matrix.build != 'rocm5' }} |
| 147 | + |
| 148 | + with: |
| 149 | + name: windows-${{ matrix.build }} |
| 150 | + path: .\build\bin\Release\stable-diffusion.dll |
119 | 151 |
|
120 | 152 | windows-sycl:
|
121 | 153 | runs-on: windows-latest
|
|
0 commit comments