|
26 | 26 | "ggml", |
27 | 27 | "examples/server/frontend", |
28 | 28 | "examples/server/frontend/**", |
| 29 | + "start-server.sh", |
| 30 | + "start-server.bat", |
29 | 31 | ] |
30 | 32 | pull_request: |
31 | 33 | types: [opened, synchronize, reopened] |
|
44 | 46 | "ggml", |
45 | 47 | "examples/server/frontend", |
46 | 48 | "examples/server/frontend/**", |
| 49 | + "start-server.sh", |
| 50 | + "start-server.bat", |
47 | 51 | ] |
48 | 52 |
|
49 | 53 | env: |
@@ -107,7 +111,8 @@ jobs: |
107 | 111 | run: | |
108 | 112 | cp ggml/LICENSE ./build/bin/ggml.txt |
109 | 113 | cp LICENSE ./build/bin/stable-diffusion.cpp.txt |
110 | | - 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/* |
| 114 | + chmod +x start-server.sh |
| 115 | + 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/* ./start-server.sh ./start-server.bat |
111 | 116 |
|
112 | 117 | - name: Upload artifacts |
113 | 118 | if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} |
@@ -170,7 +175,8 @@ jobs: |
170 | 175 | run: | |
171 | 176 | cp ggml/LICENSE ./build/bin/ggml.txt |
172 | 177 | cp LICENSE ./build/bin/stable-diffusion.cpp.txt |
173 | | - 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 }}-vulkan.zip ./build/bin/* |
| 178 | + chmod +x start-server.sh |
| 179 | + 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 }}-vulkan.zip ./build/bin/* ./start-server.sh ./start-server.bat |
174 | 180 |
|
175 | 181 | - name: Upload artifacts |
176 | 182 | if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} |
@@ -325,7 +331,8 @@ jobs: |
325 | 331 | run: | |
326 | 332 | cp ggml/LICENSE ./build/bin/ggml.txt |
327 | 333 | cp LICENSE ./build/bin/stable-diffusion.cpp.txt |
328 | | - 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/* |
| 334 | + chmod +x start-server.sh |
| 335 | + 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/* ./start-server.sh ./start-server.bat |
329 | 336 |
|
330 | 337 | - name: Upload artifacts |
331 | 338 | if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} |
@@ -420,7 +427,7 @@ jobs: |
420 | 427 | ls .\build\bin |
421 | 428 | throw "Can't find stable-diffusion.dll" |
422 | 429 | } |
423 | | - 7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip $filePath |
| 430 | + 7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-${{ matrix.build }}-x64.zip $filePath .\start-server.sh .\start-server.bat |
424 | 431 |
|
425 | 432 | - name: Copy and pack Cuda runtime |
426 | 433 | id: pack_cuda_runtime |
@@ -575,7 +582,7 @@ jobs: |
575 | 582 | - name: Pack artifacts |
576 | 583 | if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} |
577 | 584 | run: | |
578 | | - 7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-rocm-${{ env.ROCM_VERSION }}-x64.zip .\build\bin\* |
| 585 | + 7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-win-rocm-${{ env.ROCM_VERSION }}-x64.zip .\build\bin\* .\start-server.sh .\start-server.bat |
579 | 586 |
|
580 | 587 | - name: Upload artifacts |
581 | 588 | if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} |
@@ -737,7 +744,8 @@ jobs: |
737 | 744 | run: | |
738 | 745 | cp ggml/LICENSE ./build/bin/ggml.txt |
739 | 746 | cp LICENSE ./build/bin/stable-diffusion.cpp.txt |
740 | | - zip -y -r sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-Ubuntu-${{ env.UBUNTU_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm-${{ matrix.ROCM_VERSION }}.zip ./build/bin |
| 747 | + chmod +x start-server.sh |
| 748 | + zip -y -r sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-bin-${{ steps.system-info.outputs.OS_TYPE }}-Ubuntu-${{ env.UBUNTU_VERSION }}-${{ steps.system-info.outputs.CPU_ARCH }}-rocm-${{ matrix.ROCM_VERSION }}.zip ./build/bin ./start-server.sh ./start-server.bat |
741 | 749 |
|
742 | 750 | - name: Upload artifacts |
743 | 751 | if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} |
|
0 commit comments