Fine-tuning GitHub Actions (#3169)

* Bumping GitHub Actions versions

* Using LZMA2 for 7zip compression in Windows packaging
This commit is contained in:
YAN Wenkun 2024-07-02 05:15:49 +08:00 committed by GitHub
parent 601b4b63e1
commit 0cd4a6a5e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -33,8 +33,8 @@ jobs:
build_dependencies: build_dependencies:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }} python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
@ -58,7 +58,7 @@ jobs:
mv temp_wheel_dir cu${{ inputs.cu }}_python_deps mv temp_wheel_dir cu${{ inputs.cu }}_python_deps
tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps tar cf cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps
- uses: actions/cache/save@v3 - uses: actions/cache/save@v4
with: with:
path: | path: |
cu${{ inputs.cu }}_python_deps.tar cu${{ inputs.cu }}_python_deps.tar

View File

@ -32,11 +32,11 @@ jobs:
pull-requests: "read" pull-requests: "read"
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
persist-credentials: false persist-credentials: false
- uses: actions/setup-python@v4 - uses: actions/setup-python@v5
with: with:
python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }} python-version: 3.${{ inputs.python_minor }}.${{ inputs.python_patch }}
- shell: bash - shell: bash

View File

@ -32,7 +32,7 @@ jobs:
pull-requests: "read" pull-requests: "read"
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/cache/restore@v3 - uses: actions/cache/restore@v4
id: cache id: cache
with: with:
path: | path: |
@ -48,7 +48,7 @@ jobs:
pwd pwd
ls ls
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
persist-credentials: false persist-credentials: false
@ -82,7 +82,7 @@ jobs:
cd .. cd ..
"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_portable "C:\Program Files\7-Zip\7z.exe" a -t7z -m0=lzma2 -mx=8 -mfb=64 -md=32m -ms=on -mf=BCJ2 ComfyUI_windows_portable.7z ComfyUI_windows_portable
mv ComfyUI_windows_portable.7z ComfyUI/new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z mv ComfyUI_windows_portable.7z ComfyUI/new_ComfyUI_windows_portable_nvidia_cu${{ inputs.cu }}_or_cpu.7z
cd ComfyUI_windows_portable cd ComfyUI_windows_portable