Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
5bde1349
Commit
5bde1349
authored
Mar 14, 2023
by
comfyanonymous
Browse files
More proper ci workflows.
parent
5ad9f865
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
59 deletions
+66
-59
.ci/setup_windows_zip.ps1
.ci/setup_windows_zip.ps1
+0
-25
.ci/setup_windows_zip_nightly_pytorch.ps1
.ci/setup_windows_zip_nightly_pytorch.ps1
+0
-27
.github/workflows/windows_release.yml
.github/workflows/windows_release.yml
+32
-3
.github/workflows/windows_release_cu118.yml
.github/workflows/windows_release_cu118.yml
+1
-1
.github/workflows/windows_release_nightly_pytorch.yml
.github/workflows/windows_release_nightly_pytorch.yml
+33
-3
No files found.
.ci/setup_windows_zip.ps1
deleted
100755 → 0
View file @
5ad9f865
Invoke-WebRequest
-URI
https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip
-O
python_embeded.zip
Expand-Archive
python_embeded.zip
cd
python_embeded
Add-Content
-Path
.
\python310._pth
-Value
'import site'
Invoke-WebRequest
-Uri
https://bootstrap.pypa.io/get-pip.py
-OutFile
get-pip.py
.
\python.exe
get-pip.py
.
\python.exe
-s
-m
pip
install
torch
torchvision
torchaudio
--extra-index-url
https://download.pytorch.org/whl/cu117
xformers
-r
..
/ComfyUI/requirements.txt
pygit2
"../ComfyUI
`n
"
+
(
Get-Content
.
\python310._pth
-Raw
)
|
Set-Content
.
\python310._pth
cd
..
mkdir
ComfyUI_windows_portable
mv
python_embeded
ComfyUI_windows_portable
mv
ComfyUI_copy
ComfyUI_windows_portable/ComfyUI
cd
ComfyUI_windows_portable
mkdir
update
cp
-r
ComfyUI/.ci/update_windows/
*
.
/update/
cp
-r
ComfyUI/.ci/windows_base_files/
*
.
/
cd
..
&
"C:\Program Files\7-Zip\7z.exe"
a
-t7z
-m0
=
lzma
-mx
=
8
-mfb
=
64
-md
=
32
m
-ms
=
on
ComfyUI_windows_portable.7z
ComfyUI_windows_portable
mv
ComfyUI_windows_portable.7z
ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu.7z
.ci/setup_windows_zip_nightly_pytorch.ps1
deleted
100755 → 0
View file @
5ad9f865
Invoke-WebRequest
-URI
https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip
-O
python_embeded.zip
Expand-Archive
python_embeded.zip
rm
python_embeded.zip
cd
python_embeded
Add-Content
-Path
.
\python310._pth
-Value
'import site'
Invoke-WebRequest
-Uri
https://bootstrap.pypa.io/get-pip.py
-OutFile
get-pip.py
.
\python.exe
get-pip.py
python
-m
pip
wheel
torch
torchvision
torchaudio
--pre
--extra-index-url
https://download.pytorch.org/whl/nightly/cu118
-r
..
/ComfyUI/requirements.txt
pygit2
-w
..
/temp_wheel_dir
ls
..
/temp_wheel_dir
.
\python.exe
-s
-m
pip
install
--pre
(
get-item
..
\temp_wheel_dir\
*
)
"../ComfyUI
`n
"
+
(
Get-Content
.
\python310._pth
-Raw
)
|
Set-Content
.
\python310._pth
cd
..
mkdir
ComfyUI_windows_portable_nightly_pytorch
mv
python_embeded
ComfyUI_windows_portable_nightly_pytorch
mv
ComfyUI_copy
ComfyUI_windows_portable_nightly_pytorch/ComfyUI
cd
ComfyUI_windows_portable_nightly_pytorch
mkdir
update
cp
-r
ComfyUI/.ci/nightly/update_windows/
*
.
/update/
cp
-r
ComfyUI/.ci/nightly/windows_base_files/
*
.
/
cd
..
&
"C:\Program Files\7-Zip\7z.exe"
a
-t7z
-m0
=
lzma
-mx
=
8
-mfb
=
64
-md
=
32
m
-ms
=
on
ComfyUI_windows_portable_nightly_pytorch.7z
ComfyUI_windows_portable_nightly_pytorch
mv
ComfyUI_windows_portable_nightly_pytorch.7z
ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
.github/workflows/windows_release.yml
View file @
5bde1349
...
@@ -18,13 +18,42 @@ jobs:
...
@@ -18,13 +18,42 @@ jobs:
with
:
with
:
fetch-depth
:
0
fetch-depth
:
0
-
run
:
|
-
shell
:
bash
run
:
|
cd ..
cd ..
cp ComfyUI/.ci/setup_windows_zip.ps1 ./
cp -r ComfyUI ComfyUI_copy
cp -r ComfyUI ComfyUI_copy
.\setup_windows_zip.ps1
wget https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip -O python_embeded.zip
unzip python_embeded.zip -d python_embeded
cd python_embeded
echo 'import site' >> ./python310._pth
wget https://bootstrap.pypa.io/get-pip.py -O get-pip.py
./python.exe get-pip.py
./python.exe -s -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 xformers -r ../ComfyUI/requirements.txt pygit2
sed -i '1i../ComfyUI' ./python310._pth
cd ..
mkdir ComfyUI_windows_portable
mv python_embeded ComfyUI_windows_portable
mv ComfyUI_copy ComfyUI_windows_portable/ComfyUI
cd ComfyUI_windows_portable
mkdir update
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/windows_base_files/* ./
cd ..
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma -mx=8 -mfb=64 -md=32m -ms=on ComfyUI_windows_portable.7z ComfyUI_windows_portable
mv ComfyUI_windows_portable.7z ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu.7z
cd ComfyUI_windows_portable
python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
ls
ls
-
name
:
Upload binaries to release
-
name
:
Upload binaries to release
uses
:
svenstaro/upload-release-action@v2
uses
:
svenstaro/upload-release-action@v2
with
:
with
:
...
...
.github/workflows/windows_release_cu118.yml
View file @
5bde1349
...
@@ -23,7 +23,7 @@ jobs:
...
@@ -23,7 +23,7 @@ jobs:
cd ..
cd ..
cp -r ComfyUI ComfyUI_copy
cp -r ComfyUI ComfyUI_copy
wget https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip -O python_embeded.zip
wget https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip -O python_embeded.zip
unzip python_embeded.zip
unzip python_embeded.zip
-d python_embeded
cd python_embeded
cd python_embeded
echo 'import site' >> ./python310._pth
echo 'import site' >> ./python310._pth
wget https://bootstrap.pypa.io/get-pip.py -O get-pip.py
wget https://bootstrap.pypa.io/get-pip.py -O get-pip.py
...
...
.github/workflows/windows_release_nightly_pytorch.yml
View file @
5bde1349
...
@@ -20,11 +20,41 @@ jobs:
...
@@ -20,11 +20,41 @@ jobs:
-
uses
:
actions/setup-python@v4
-
uses
:
actions/setup-python@v4
with
:
with
:
python-version
:
'
3.10.9'
python-version
:
'
3.10.9'
-
run
:
|
-
shell
:
bash
run
:
|
cd ..
cd ..
cp ComfyUI/.ci/setup_windows_zip_nightly_pytorch.ps1 ./
cp -r ComfyUI ComfyUI_copy
cp -r ComfyUI ComfyUI_copy
.\setup_windows_zip_nightly_pytorch.ps1
wget https://www.python.org/ftp/python/3.10.9/python-3.10.9-embed-amd64.zip -O python_embeded.zip
unzip python_embeded.zip -d python_embeded
cd python_embeded
echo 'import site' >> ./python310._pth
wget https://bootstrap.pypa.io/get-pip.py -O get-pip.py
./python.exe get-pip.py
python -m pip wheel torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu118 -r ../ComfyUI/requirements.txt pygit2 -w ../temp_wheel_dir
ls ../temp_wheel_dir
./python.exe -s -m pip install --pre ../temp_wheel_dir/*
sed -i '1i../ComfyUI' ./python310._pth
cd ..
mkdir ComfyUI_windows_portable_nightly_pytorch
mv python_embeded ComfyUI_windows_portable_nightly_pytorch
mv ComfyUI_copy ComfyUI_windows_portable_nightly_pytorch/ComfyUI
cd ComfyUI_windows_portable_nightly_pytorch
mkdir update
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/windows_base_files/* ./
cd ..
"C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma -mx=8 -mfb=64 -md=32m -ms=on ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI_windows_portable_nightly_pytorch
mv ComfyUI_windows_portable_nightly_pytorch.7z ComfyUI/ComfyUI_windows_portable_nvidia_or_cpu_nightly_pytorch.7z
cd ComfyUI_windows_portable_nightly_pytorch
python_embeded/python.exe -s ComfyUI/main.py --quick-test-for-ci --cpu
ls
ls
-
name
:
Upload binaries to release
-
name
:
Upload binaries to release
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment