Skip to content

Commit 50c856b

Browse files
.github/workflows: Migrate workflows to Blacksmith runners (#2659)
This PR has been automatically generated by a team member in your GitHub organization using Blacksmith's [Migration Wizard](https://docs.blacksmith.sh/introduction/quickstart). This PR changes the following: 1. Your selected workflows will now run on Blacksmith's 2x faster hardware (e.g., `runs-on: blacksmith-4vcpu-ubuntu-2204`). Learn more about the [different instances available to choose from](https://docs.blacksmith.sh/blacksmith-runners/overview#runner-tags). 2. Your jobs running on Blacksmith will now have all official GitHub and popular third-party cache actions automatically interact with our 4x faster, colocated cache. Learn more about [Blacksmith's actions cache](https://docs.blacksmith.sh/blacksmith-caching/dependencies-actions). 3. Your GitHub Actions will now actually be observable. Learn more about Blacksmith's [logging](https://docs.blacksmith.sh/blacksmith-observability/logs) and other [observability](https://docs.blacksmith.sh/blacksmith-observability/dashboard) features. 4. Your Docker builds will now automatically share their Docker layer cache, resulting in up to 40x faster builds. Learn more about [Blacksmith's Docker layer caching](https://docs.blacksmith.sh/blacksmith-caching/docker-builds). <!-- codesmith:footer --> --- <a href="https://app.blacksmith.sh/kagent-dev/codesmith/kagent/pr/2659"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a> <sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need. Autofix is enabled.</sup> <!-- codesmith:autofix:enabled --> <!-- /codesmith:footer --> --------- Signed-off-by: Eitan Yarmush <[email protected]> Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> Co-authored-by: Eitan Yarmush <[email protected]>
1 parent 69335fb commit 50c856b

3 files changed

Lines changed: 13 additions & 31 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
VERSION: v0.0.1-test
4343
SUBSTRATE_VERSION: 0.0.22
44-
runs-on: ubuntu-latest
44+
runs-on: blacksmith-4vcpu-ubuntu-2404
4545
timeout-minutes: 30
4646
steps:
4747
- name: Checkout repository
@@ -69,14 +69,8 @@ jobs:
6969
# See https://github.com/openai/codex/issues/14919
7070
run: |
7171
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true
72-
- name: Set up Docker Buildx
73-
uses: docker/setup-buildx-action@v4
74-
with:
75-
name: ${{ env.BUILDX_BUILDER_NAME }}
76-
version: ${{ env.BUILDX_VERSION }}
77-
platforms: linux/amd64
78-
use: "true"
79-
driver-opts: network=host
72+
- name: Setup Blacksmith Builder
73+
uses: useblacksmith/setup-docker-builder@v1
8074

8175
- name: Set up Helm
8276
uses: azure/[email protected]
@@ -209,7 +203,7 @@ jobs:
209203
- setup
210204
env:
211205
VERSION: v0.0.1-test
212-
runs-on: ubuntu-latest
206+
runs-on: blacksmith-4vcpu-ubuntu-2404
213207
strategy:
214208
fail-fast: false
215209
matrix:
@@ -255,7 +249,7 @@ jobs:
255249
- setup
256250
env:
257251
VERSION: v0.0.1-test
258-
runs-on: ubuntu-latest
252+
runs-on: blacksmith-4vcpu-ubuntu-2404
259253
strategy:
260254
fail-fast: false
261255
matrix:
@@ -348,7 +342,7 @@ jobs:
348342
helm unittest helm/tools/grafana-mcp
349343
350344
ui-tests:
351-
runs-on: ubuntu-latest
345+
runs-on: blacksmith-4vcpu-ubuntu-2404
352346
permissions:
353347
contents: read
354348
pull-requests: write
@@ -415,7 +409,7 @@ jobs:
415409
- golang-adk
416410
- claude-harness
417411
- codex-harness
418-
runs-on: ubuntu-latest
412+
runs-on: blacksmith-2vcpu-ubuntu-2404
419413
services:
420414
registry:
421415
image: registry:2
@@ -428,14 +422,8 @@ jobs:
428422
uses: docker/setup-qemu-action@v4
429423
with:
430424
platforms: linux/amd64,linux/arm64
431-
- name: Set up Docker Buildx
432-
uses: docker/setup-buildx-action@v4
433-
with:
434-
name: ${{ env.BUILDX_BUILDER_NAME }}
435-
platforms: linux/amd64,linux/arm64
436-
version: ${{ env.BUILDX_VERSION }}
437-
use: "true"
438-
driver-opts: network=host
425+
- name: Setup Blacksmith Builder
426+
uses: useblacksmith/setup-docker-builder@v1
439427
- name: Run make build
440428
env:
441429
BUILDX_BUILDER_NAME: ${{ env.BUILDX_BUILDER_NAME }}

‎.github/workflows/image-scan.yaml‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- build_target: codex-harness
4949
image_name: codex-harness
5050
tag_suffix: ""
51-
runs-on: ubuntu-latest
51+
runs-on: blacksmith-2vcpu-ubuntu-2404
5252
services:
5353
registry:
5454
image: registry:2
@@ -59,14 +59,8 @@ jobs:
5959
uses: actions/checkout@v6
6060
- name: Set up QEMU
6161
uses: docker/setup-qemu-action@v4
62-
- name: Set up Docker Buildx
63-
uses: docker/setup-buildx-action@v4
64-
with:
65-
name: ${{ env.BUILDX_BUILDER_NAME }}
66-
version: ${{ env.BUILDX_VERSION }}
67-
platforms: linux/amd64,linux/arm64
68-
use: 'true'
69-
driver-opts: network=host
62+
- name: Setup Blacksmith Builder
63+
uses: useblacksmith/setup-docker-builder@v1
7064
- name: Set version
7165
id: vars
7266
run: echo "version=v0.0.0-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

‎.github/workflows/tag.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- golang-adk
2424
- claude-harness
2525
- codex-harness
26-
runs-on: ubuntu-latest
26+
runs-on: blacksmith-2vcpu-ubuntu-2404
2727
permissions:
2828
contents: read
2929
packages: write

0 commit comments

Comments
 (0)