Tinkering GitHub #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Tinkering GitHub" | |
on: | |
workflow_dispatch: | |
inputs: | |
cu: | |
description: 'cuda version' | |
required: true | |
type: string | |
default: "121" | |
python_minor: | |
description: 'python minor version' | |
required: true | |
type: string | |
default: "11" | |
python_patch: | |
description: 'python patch version' | |
required: true | |
type: string | |
default: "8" | |
jobs: | |
package_comfyui: | |
permissions: | |
contents: "write" | |
packages: "write" | |
pull-requests: "read" | |
runs-on: windows-latest | |
steps: | |
- uses: actions/cache/restore@v4 | |
id: cache | |
with: | |
path: | | |
cu${{ inputs.cu }}_python_deps.tar | |
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }} | |
- shell: bash | |
run: | | |
mv cu${{ inputs.cu }}_python_deps.tar ../ | |
cd .. | |
tar xf cu${{ inputs.cu }}_python_deps.tar | |
pwd | |
ls | |
git clone --depth=1 https://github.com/comfyanonymous/ComfyUI.git | |
cp -r ComfyUI ComfyUI_copy | |
curl https://www.python.org/ftp/python/3.${{ inputs.python_minor }}.${{ inputs.python_patch }}/python-3.${{ inputs.python_minor }}.${{ inputs.python_patch }}-embed-amd64.zip -o python_embeded.zip | |
unzip python_embeded.zip -d python_embeded | |
cd python_embeded | |
echo 'import site' >> ./python3${{ inputs.python_minor }}._pth | |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
./python.exe get-pip.py | |
rm ../cu${{ inputs.cu }}_python_deps/protobuf-5* | |
./python.exe -s -m pip install ../cu${{ inputs.cu }}_python_deps/* |