Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

.github/workflows: Migrate workflows to Blacksmith runners (#9802)

blacksmith-sh[bot]aa46003581e2
diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml
index f09465ab79..8e60dbdb6b 100644
--- a/.github/workflows/build-container.yml
+++ b/.github/workflows/build-container.yml
@@ -34,7 +34,7 @@ jobs:
- cuda
- cpu
- rocm
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
name: ${{ matrix.gpu-driver }}
env:
# torch/arm64 does not support GPU currently, so arm64 builds
@@ -66,7 +66,7 @@ jobs:
df -h
- name: Checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: Docker meta
id: meta
@@ -86,10 +86,8 @@ jobs:
latest=${{ matrix.gpu-driver == 'cuda' && github.ref == 'refs/heads/main' }}
suffix=-${{ matrix.gpu-driver }},onlatest=false
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v4
- with:
- platforms: ${{ env.PLATFORMS }}
+ - name: Setup Blacksmith Builder
+ uses: useblacksmith/setup-docker-builder@v1
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
@@ -108,7 +106,7 @@ jobs:
# 2026-09-22).
timeout-minutes: 90
id: docker_build
- uses: docker/build-push-action@v7
+ uses: useblacksmith/build-push-action@v2
with:
context: .
file: docker/Dockerfile
diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml
index 546d1b0708..eb0a4e6e28 100644
--- a/.github/workflows/build-wheel.yml
+++ b/.github/workflows/build-wheel.yml
@@ -8,11 +8,11 @@ on:
jobs:
build-installer:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5 # expected run time: <2 min
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: setup python
uses: actions/setup-python@v6
diff --git a/.github/workflows/clean-caches.yml b/.github/workflows/clean-caches.yml
index 73d742f304..75533e346c 100644
--- a/.github/workflows/clean-caches.yml
+++ b/.github/workflows/clean-caches.yml
@@ -7,10 +7,10 @@ on:
jobs:
cleanup:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Check out code
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: Cleanup
run: |
diff --git a/.github/workflows/close-inactive-issues.yml b/.github/workflows/close-inactive-issues.yml
index 40f75cebb8..e88814dd74 100644
--- a/.github/workflows/close-inactive-issues.yml
+++ b/.github/workflows/close-inactive-issues.yml
@@ -9,7 +9,7 @@ env:
jobs:
close-issues:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
issues: write
pull-requests: write
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index 62012aabab..fd0122775f 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -22,12 +22,12 @@ concurrency:
jobs:
changes:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
outputs:
docs: ${{ steps.manual.outputs.docs || steps.filter.outputs.docs }}
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
with:
fetch-depth: 0
@@ -61,11 +61,11 @@ jobs:
github.event.pull_request.draft == false &&
needs.changes.outputs.docs == 'true') ||
(github.event_name == 'push' && needs.changes.outputs.docs == 'true')
- runs-on: ubuntu-22.04
+ runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 20
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
# Python (needed for generate-docs-data)
- name: setup uv
@@ -139,7 +139,7 @@ jobs:
deploy:
if: github.ref == 'refs/heads/main'
needs: check-and-build
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: read
environment:
diff --git a/.github/workflows/frontend-checks.yml b/.github/workflows/frontend-checks.yml
index bb00170406..7633593ea7 100644
--- a/.github/workflows/frontend-checks.yml
+++ b/.github/workflows/frontend-checks.yml
@@ -41,13 +41,13 @@ concurrency:
jobs:
frontend-webv2-checks:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 10 # expected run time: <2 min
defaults:
run:
working-directory: invokeai/frontend/webv2
steps:
- - uses: actions/checkout@v6
+ - uses: useblacksmith/checkout@v1
- name: check for changed webv2 files
if: ${{ inputs.always_run != true }}
diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml
index 347b2d4d30..d1a08bede7 100644
--- a/.github/workflows/frontend-tests.yml
+++ b/.github/workflows/frontend-tests.yml
@@ -41,13 +41,13 @@ concurrency:
jobs:
frontend-webv2-tests:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 20 # Includes browser suites, performance sampling, project files, and accessibility.
defaults:
run:
working-directory: invokeai/frontend/webv2
steps:
- - uses: actions/checkout@v6
+ - uses: useblacksmith/checkout@v1
- name: check for changed webv2 files
if: ${{ inputs.always_run != true }}
diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml
index b7689b1202..a1c0e4f2a2 100644
--- a/.github/workflows/label-pr.yml
+++ b/.github/workflows/label-pr.yml
@@ -7,10 +7,10 @@ jobs:
permissions:
contents: read
pull-requests: write
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: label PRs
uses: actions/labeler@v6
diff --git a/.github/workflows/lfs-checks.yml b/.github/workflows/lfs-checks.yml
index a3b845025a..c1b875d574 100644
--- a/.github/workflows/lfs-checks.yml
+++ b/.github/workflows/lfs-checks.yml
@@ -17,14 +17,14 @@ on:
jobs:
lfs-check:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5
permissions:
# Required to label and comment on the PRs
pull-requests: write
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: check lfs files
uses: ppremk/[email protected]
diff --git a/.github/workflows/openapi-checks.yml b/.github/workflows/openapi-checks.yml
index e4299cf57c..5061d703f8 100644
--- a/.github/workflows/openapi-checks.yml
+++ b/.github/workflows/openapi-checks.yml
@@ -45,11 +45,11 @@ jobs:
env:
# uv requires a venv by default - but for this, we can simply use the system python
UV_SYSTEM_PYTHON: 1
- runs-on: ubuntu-22.04
+ runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 15 # expected run time: <5 min
steps:
- name: checkout
- uses: actions/checkout@v4
+ uses: useblacksmith/checkout@v1
- name: Free up more disk space on the runner
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
diff --git a/.github/workflows/python-checks.yml b/.github/workflows/python-checks.yml
index 388a9e4b6e..435056b14a 100644
--- a/.github/workflows/python-checks.yml
+++ b/.github/workflows/python-checks.yml
@@ -46,11 +46,11 @@ jobs:
env:
# uv requires a venv by default - but for this, we can simply use the system python
UV_SYSTEM_PYTHON: 1
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5 # expected run time: <1 min
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: check for changed python files
if: ${{ inputs.always_run != true }}
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index 253744fabb..6e94e777f4 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -161,7 +161,7 @@ jobs:
# included, would pull both server images and wait for them to become healthy.
external-database-changes:
name: 'external database: change detection'
- runs-on: ubuntu-24.04
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 10
outputs:
run: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
@@ -206,7 +206,7 @@ jobs:
health-cmd: 'mariadb-admin ping -h 127.0.0.1 --silent'
url: 'mariadb+pymysql://root:[email protected]:3306'
name: 'py3.12: linux-${{ matrix.server }}'
- runs-on: ubuntu-24.04
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
services:
database:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 30e87b53dc..28bd049564 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -17,10 +17,10 @@ on:
jobs:
check-version:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: check python version
uses: samuelcolvin/check-python-version@v4
@@ -52,7 +52,7 @@ jobs:
uses: ./.github/workflows/build-wheel.yml
publish-testpypi:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5 # expected run time: <1 min
needs:
[
@@ -81,7 +81,7 @@ jobs:
repository-url: https://test.pypi.org/legacy/
publish-pypi:
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5 # expected run time: <1 min
needs:
[
diff --git a/.github/workflows/typegen-checks.yml b/.github/workflows/typegen-checks.yml
index 89227660fd..a7e1015089 100644
--- a/.github/workflows/typegen-checks.yml
+++ b/.github/workflows/typegen-checks.yml
@@ -45,11 +45,11 @@ jobs:
env:
# uv requires a venv by default - but for this, we can simply use the system python
UV_SYSTEM_PYTHON: 1
- runs-on: ubuntu-22.04
+ runs-on: blacksmith-4vcpu-ubuntu-2204
timeout-minutes: 15 # expected run time: <5 min
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: Free up more disk space on the runner
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
diff --git a/.github/workflows/uv-lock-checks.yml b/.github/workflows/uv-lock-checks.yml
index e64cef1297..0774b899ea 100644
--- a/.github/workflows/uv-lock-checks.yml
+++ b/.github/workflows/uv-lock-checks.yml
@@ -48,11 +48,11 @@ jobs:
env:
# uv requires a venv by default - but for this, we can simply use the system python
UV_SYSTEM_PYTHON: 1
- runs-on: ubuntu-latest
+ runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 5 # expected run time: <1 min
steps:
- name: checkout
- uses: actions/checkout@v6
+ uses: useblacksmith/checkout@v1
- name: check for changed python files
if: ${{ inputs.always_run != true }}