-
Notifications
You must be signed in to change notification settings - Fork 31
72 lines (59 loc) · 2.05 KB
/
Copy pathcomfyui-daily-build.yaml
File metadata and controls
72 lines (59 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Daily ComfyUI build
on:
schedule:
- cron: "0 14 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rocm_version: [ "6.3.3", "7.2.1" ]
steps:
- name: Aggressive cleanup
run: |
# Remove Java (JDKs)
# sudo rm -rf /usr/lib/jvm
# Remove .NET SDKs
# sudo rm -rf /usr/share/dotnet
# Remove Swift toolchain
sudo rm -rf /usr/share/swift
# Remove Haskell (GHC)
sudo rm -rf /usr/local/.ghcup
# Remove Julia
sudo rm -rf /usr/local/julia*
# Remove Android SDKs
sudo rm -rf /usr/local/lib/android
# Remove Chromium (optional if not using for browser tests)
# sudo rm -rf /usr/local/share/chromium
# Remove Microsoft/Edge and Google Chrome builds
# sudo rm -rf /opt/microsoft /opt/google
# Remove Azure CLI
# sudo rm -rf /opt/az
# Remove PowerShell
# sudo rm -rf /usr/local/share/powershell
# Remove CodeQL and other toolcaches
# sudo rm -rf /opt/hostedtoolcache
df -h
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: master
- name: Install yq
run: |
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
chmod +x /usr/local/bin/yq
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run build script
run: |
cd ./comfyui
export COMFYUI_BRANCH="$(curl -L \
-H "Accept: application/vnd.github+json" \
'https://api.github.com/repos/Comfy-Org/ComfyUI/releases?per_page=1' | yq -r '.[0].tag_name')"
export COMFYUI_ROCM_VERSION='${{ matrix.rocm_version }}'
export COMFYUI_PYTORCH_VERSION='2.11.0'
./build-and-push.comfyui.sh