Skip to content

Daily ComfyUI build #61

Daily ComfyUI build

Daily ComfyUI build #61

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