Gathering dependencies #1
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: "Windows Release dependencies" | |
on: | |
workflow_dispatch: | |
inputs: | |
xformers: | |
description: 'xformers version' | |
required: false | |
type: string | |
default: "xformers" | |
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: | |
build_dependencies: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }} | |
- shell: bash | |
run: | | |
python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -w ./temp_wheel_dir | |
python -m pip wheel --no-cache-dir https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl -w ./temp_wheel_dir | |
git clone --depth=1 https://github.com/MrForExample/ComfyUI-3D-Pack.git | |
python -m pip wheel --no-cache-dir ./ComfyUI-3D-Pack/_Pre_Builds/_Wheels_win_py311_cu121/*.whl -w ./temp_wheel_dir | |
python -m pip wheel --no-cache-dir -r requirements.txt -w ./temp_wheel_dir | |
ls -lah temp_wheel_dir | |
mv temp_wheel_dir cu${{ inputs.cu }}_python_deps | |
tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps | |
- uses: actions/cache/save@v4 | |
with: | |
path: | | |
cu${{ inputs.cu }}_python_deps.tar | |
key: ${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }} |