CoolFace
Apppublic

brunvelop/ComfyUI

sourceHugging Faceupdated 3y agoView on Hugging Face
2likes
windows_release_cu118_package.yml80 linesDownload Raw Back to workflows
1name: "Windows Release cu118 packaging"2 3on:4  workflow_dispatch:5#  push:6#    branches:7#      - master8 9jobs:10  package_comfyui:11    permissions:12        contents: "write"13        packages: "write"14        pull-requests: "read"15    runs-on: windows-latest16    steps:17        - uses: actions/cache/restore@v318          id: cache19          with:20            path: cu118_python_deps.tar21            key: ${{ runner.os }}-build-cu11822        - shell: bash23          run: |24            mv cu118_python_deps.tar ../25            cd ..26            tar xf cu118_python_deps.tar27            pwd28            ls29 30        - uses: actions/checkout@v331          with:32            fetch-depth: 033            persist-credentials: false34        - shell: bash35          run: |36            cd ..37            cp -r ComfyUI ComfyUI_copy38            curl https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip -o python_embeded.zip39            unzip python_embeded.zip -d python_embeded40            cd python_embeded41            echo 'import site' >> ./python310._pth42            curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py43            ./python.exe get-pip.py44            ./python.exe -s -m pip install ../cu118_python_deps/*45            sed -i '1i../ComfyUI' ./python310._pth46            cd ..47 48            git clone https://github.com/comfyanonymous/taesd49            cp taesd/*.pth ./ComfyUI_copy/models/vae_approx/50 51            mkdir ComfyUI_windows_portable52            mv python_embeded ComfyUI_windows_portable53            mv ComfyUI_copy ComfyUI_windows_portable/ComfyUI54 55            cd ComfyUI_windows_portable56 57            mkdir update58            cp -r ComfyUI/.ci/update_windows/* ./update/59            cp -r ComfyUI/.ci/update_windows_cu118/* ./update/60            cp -r ComfyUI/.ci/windows_base_files/* ./61 62            cd ..63 64            "C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable65            mv ComfyUI_windows_portable.7z ComfyUI/new_ComfyUI_windows_portable_nvidia_cu118_or_cpu.7z66 67            cd ComfyUI_windows_portable68            python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu69 70            ls71 72        - name: Upload binaries to release73          uses: svenstaro/upload-release-action@v274          with:75                repo_token: ${{ secrets.GITHUB_TOKEN }}76                file: new_ComfyUI_windows_portable_nvidia_cu118_or_cpu.7z77                tag: "latest"78                overwrite: true79 80