Skip to content

Commit e2acba2

Browse files
committed
refactor with c abi code
1 parent b569263 commit e2acba2

File tree

6 files changed

+270
-240
lines changed

6 files changed

+270
-240
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ jobs:
151151
uses: Jimver/[email protected]
152152
with:
153153
cuda: '12.2.0'
154-
154+
155155
- name: Peek cuda-toolkit info
156156
id: peek_cuda_toolkit
157157
if: ${{ matrix.build == 'cuda12' }}
158158
run: |
159159
echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}"
160160
echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
161161
nvcc -V
162-
162+
163163
- name: Build
164164
id: cmake_build
165165
run: |
@@ -190,7 +190,8 @@ jobs:
190190
id: pack_artifacts
191191
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}
192192
run: |
193-
7z a stable-diffusion-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip .\build\bin\Release\sd-abi.dll
193+
Rename-Item -Path .\build\bin\Release\sd-abi.dll -NewName sd-abi_${{ matrix.build }}.dll
194+
7z a stable-diffusion-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip .\build\bin\Release\sd-abi_${{ matrix.build }}.dll
194195
195196
- name: Upload artifacts
196197
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || github.event.inputs.create_release == 'true' }}

.idea/stable-diffusion.cpp-build.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 28 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ set(SD_ABI sd-abi)
4444

4545
add_library(${SD_ABI} SHARED
4646
stable-diffusion-abi.cpp
47-
stable-diffusion-abi.h
48-
base64.hpp)
47+
stable-diffusion-abi.h)
4948

5049
target_include_directories(${SD_ABI} PUBLIC .)
5150

0 commit comments

Comments
 (0)