Skip to content

Commit 0d88f37

Browse files
committed
Revert Blacksmith runners migration (#336)
This reverts the Blacksmith runners migration introduced in #276. No specific reason for the revert. Mainly because it's a bit of a hassle to be on different runner service with the rest of the org.
1 parent b51d47e commit 0d88f37

File tree

9 files changed

+44
-46
lines changed

9 files changed

+44
-46
lines changed

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515

1616
jobs:
1717
bench:
18-
runs-on: blacksmith-4vcpu-ubuntu-2404
18+
runs-on: ubuntu-latest
1919
container:
2020
image: ghcr.io/dojoengine/katana-dev:latest
2121
steps:

.github/workflows/build-and-push-docker.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ jobs:
2828
# |--------------------|---------------------------|
2929
#
3030
setup:
31-
runs-on: blacksmith-4vcpu-ubuntu-2404
31+
runs-on: ubuntu-latest
3232
outputs:
3333
tag_name: ${{ steps.docker_tag.outputs.tag_name }}
3434
steps:
3535
- name: Checkout repository
3636
uses: actions/checkout@v2
3737

38-
- name: Setup Blacksmith Builder
39-
uses: useblacksmith/setup-docker-builder@v1
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v1
4040

4141
- name: Set Docker tag
4242
id: docker_tag
@@ -49,7 +49,7 @@ jobs:
4949
fi
5050
5151
build-and-push-amd64:
52-
runs-on: blacksmith-8vcpu-ubuntu-2404
52+
runs-on: ubuntu-latest-8-cores
5353
needs: setup
5454
steps:
5555
- name: Checkout repository
@@ -69,7 +69,7 @@ jobs:
6969
password: ${{ secrets.GITHUB_TOKEN }}
7070

7171
- name: Build and push Docker image for amd64
72-
uses: useblacksmith/build-push-action@v2
72+
uses: docker/build-push-action@v6
7373
with:
7474
context: .
7575
push: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }}
@@ -79,9 +79,10 @@ jobs:
7979
RUST_VERSION=${{ env.RUST_VERSION }}
8080
CLIPPY_VERSION=${{ env.CLIPPY_VERSION }}
8181
platforms: linux/amd64
82+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}-dev:latest-amd64
8283

8384
build-and-push-arm64:
84-
runs-on: blacksmith-8vcpu-ubuntu-2404-arm
85+
runs-on: ubuntu-latest-8-cores-arm64
8586
needs: setup
8687
steps:
8788
- name: Checkout repository
@@ -101,7 +102,7 @@ jobs:
101102
password: ${{ secrets.GITHUB_TOKEN }}
102103

103104
- name: Build and push Docker image for arm64
104-
uses: useblacksmith/build-push-action@v2
105+
uses: docker/build-push-action@v6
105106
with:
106107
context: .
107108
push: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }}
@@ -111,9 +112,10 @@ jobs:
111112
RUST_VERSION=${{ env.RUST_VERSION }}
112113
CLIPPY_VERSION=${{ env.CLIPPY_VERSION }}
113114
platforms: linux/arm64
115+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}-dev:latest-arm64
114116

115117
create-multiplatform-manifest:
116-
runs-on: blacksmith-4vcpu-ubuntu-2404
118+
runs-on: ubuntu-latest
117119
needs: [setup, build-and-push-amd64, build-and-push-arm64]
118120
steps:
119121
- name: Login to GitHub Container Registry

.github/workflows/claude.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(vars.ALLOWED_CLAUDE_USERS, github.event.review.user.login)) ||
1919
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) && contains(vars.ALLOWED_CLAUDE_USERS, github.event.issue.user.login)))
2020
21-
runs-on: blacksmith-4vcpu-ubuntu-2404
21+
runs-on: ubuntu-latest
2222
permissions:
2323
contents: write
2424
pull-requests: write
@@ -66,7 +66,7 @@ jobs:
6666
github.event.comment &&
6767
github.event.comment.body == '/claude-review'
6868
69-
runs-on: blacksmith-4vcpu-ubuntu-2404
69+
runs-on: ubuntu-latest
7070
permissions:
7171
contents: write
7272
pull-requests: write

.github/workflows/dockerfile-build-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,25 @@ env:
1111

1212
jobs:
1313
build-dev-image:
14-
runs-on: blacksmith-4vcpu-ubuntu-2404
14+
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
1717
platform: [linux/amd64]
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121

22-
- name: Setup Blacksmith Builder
23-
uses: useblacksmith/setup-docker-builder@v1
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
2424

2525
- name: Test Docker build for ${{ matrix.platform }}
26-
uses: useblacksmith/build-push-action@v2
26+
uses: docker/build-push-action@v5
2727
with:
2828
push: false
2929
file: .github/Dockerfile
3030
platforms: ${{ matrix.platform }}
3131
build-args: |
3232
RUST_VERSION=${{ env.RUST_VERSION }}
3333
CLIPPY_VERSION=${{ env.CLIPPY_VERSION }}
34+
cache-from: type=gha
35+
cache-to: type=gha,mode=max

.github/workflows/generate-db-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44

55
jobs:
66
generate-database:
7-
runs-on: blacksmith-4vcpu-ubuntu-2404
7+
runs-on: ubuntu-latest
88

99
container:
1010
image: ghcr.io/dojoengine/katana-dev:latest

.github/workflows/release-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
permissions:
2727
pull-requests: write
2828
contents: write
29-
runs-on: blacksmith-4vcpu-ubuntu-2404
29+
runs-on: ubuntu-latest
3030
container:
3131
image: ghcr.io/dojoengine/katana-dev:latest
3232
env:

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
prepare:
2121
# The prepare-release branch names comes from the release-dispatch.yml workflow.
2222
if: (github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'prepare-release') || github.event_name == 'workflow_dispatch'
23-
runs-on: blacksmith-4vcpu-ubuntu-2404
23+
runs-on: ubuntu-latest
2424
outputs:
2525
tag_name: ${{ steps.release_info.outputs.tag_name }}
2626
steps:
@@ -41,7 +41,7 @@ jobs:
4141
fi
4242
4343
build-contracts:
44-
runs-on: blacksmith-4vcpu-ubuntu-2404
44+
runs-on: ubuntu-latest
4545
needs: prepare
4646
container:
4747
image: ghcr.io/dojoengine/katana-dev:latest
@@ -76,23 +76,23 @@ jobs:
7676
# The arch is either 386, arm64 or amd64
7777
# The svm target platform to use for the binary https://github.com/roynalnaruto/svm-rs/blob/84cbe0ac705becabdc13168bae28a45ad2299749/svm-builds/build.rs#L4-L24
7878
# Added native_build dimension to control build type
79-
- os: blacksmith-8vcpu-ubuntu-2404
79+
- os: ubuntu-latest-8-cores
8080
platform: linux
8181
target: x86_64-unknown-linux-gnu
8282
arch: amd64
8383
native_build: true
84-
- os: blacksmith-8vcpu-ubuntu-2404
84+
- os: ubuntu-latest-8-cores
8585
platform: linux
8686
target: x86_64-unknown-linux-gnu
8787
arch: amd64
8888
native_build: false
89-
- os: blacksmith-8vcpu-ubuntu-2404-arm
89+
- os: ubuntu-latest-8-cores-arm64
9090
platform: linux
9191
target: aarch64-unknown-linux-gnu
9292
arch: arm64
9393
svm_target_platform: linux-aarch64
9494
native_build: true
95-
- os: blacksmith-8vcpu-ubuntu-2404-arm
95+
- os: ubuntu-latest-8-cores-arm64
9696
platform: linux
9797
target: aarch64-unknown-linux-gnu
9898
arch: arm64
@@ -277,7 +277,7 @@ jobs:
277277
retention-days: 1
278278

279279
create-draft-release:
280-
runs-on: blacksmith-4vcpu-ubuntu-2404
280+
runs-on: ubuntu-latest
281281
needs: [prepare, release]
282282
container:
283283
image: ghcr.io/dojoengine/katana-dev:latest
@@ -301,7 +301,7 @@ jobs:
301301
- run: gh release create ${{ steps.version_info.outputs.version }} ./artifacts/* --generate-notes --draft
302302

303303
docker-build-and-push:
304-
runs-on: blacksmith-8vcpu-ubuntu-2404
304+
runs-on: ubuntu-latest-8-cores
305305
needs: [prepare, release]
306306

307307
steps:
@@ -315,8 +315,8 @@ jobs:
315315
path: artifacts/linux
316316
merge-multiple: true
317317

318-
- name: Setup Blacksmith Builder
319-
uses: useblacksmith/setup-docker-builder@v1
318+
- name: Set up Docker Buildx
319+
uses: docker/setup-buildx-action@v1
320320

321321
- name: Login to GitHub Container Registry
322322
uses: docker/login-action@v1
@@ -327,7 +327,7 @@ jobs:
327327

328328
- name: Build and push docker image
329329
if: ${{ contains(needs.prepare.outputs.tag_name, 'preview') }}
330-
uses: useblacksmith/build-push-action@v2
330+
uses: docker/build-push-action@v3
331331
with:
332332
push: true
333333
tags: ghcr.io/${{ github.repository }}:${{ needs.prepare.outputs.tag_name }}
@@ -337,7 +337,7 @@ jobs:
337337
338338
- name: Build and push docker image
339339
if: ${{ !contains(needs.prepare.outputs.tag_name, 'preview') }}
340-
uses: useblacksmith/build-push-action@v2
340+
uses: docker/build-push-action@v3
341341
with:
342342
push: true
343343
tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ needs.prepare.outputs.tag_name }}

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333

3434
jobs:
3535
fmt:
36-
runs-on: blacksmith-4vcpu-ubuntu-2404
36+
runs-on: ubuntu-latest
3737
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
3838
container:
3939
image: ghcr.io/dojoengine/katana-dev:latest
@@ -43,7 +43,7 @@ jobs:
4343

4444
generate-test-artifacts:
4545
needs: [fmt]
46-
runs-on: blacksmith-4vcpu-ubuntu-2404
46+
runs-on: ubuntu-latest
4747
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
4848
container:
4949
image: ghcr.io/dojoengine/katana-dev:latest
@@ -89,7 +89,7 @@ jobs:
8989
9090
build-katana-binary:
9191
needs: [fmt, clippy, generate-test-artifacts]
92-
runs-on: blacksmith-32vcpu-ubuntu-2404
92+
runs-on: ubuntu-latest-32-cores
9393
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
9494
container:
9595
image: ghcr.io/dojoengine/katana-dev:latest
@@ -128,7 +128,7 @@ jobs:
128128

129129
clippy:
130130
needs: [generate-test-artifacts]
131-
runs-on: blacksmith-4vcpu-ubuntu-2404
131+
runs-on: ubuntu-latest-4-cores
132132
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
133133
container:
134134
image: ghcr.io/dojoengine/katana-dev:latest
@@ -158,7 +158,7 @@ jobs:
158158

159159
test:
160160
needs: [fmt, clippy, generate-test-artifacts, build-katana-binary]
161-
runs-on: blacksmith-32vcpu-ubuntu-2404
161+
runs-on: ubuntu-latest-32-cores
162162
timeout-minutes: 30
163163
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
164164
container:
@@ -216,7 +216,7 @@ jobs:
216216

217217
snos-integration-test:
218218
needs: [fmt, clippy]
219-
runs-on: blacksmith-32vcpu-ubuntu-2404
219+
runs-on: ubuntu-latest-32-cores
220220
timeout-minutes: 30
221221
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
222222
container:
@@ -253,7 +253,7 @@ jobs:
253253
254254
explorer-reverse-proxy:
255255
needs: [fmt, clippy, build-katana-binary]
256-
runs-on: blacksmith-4vcpu-ubuntu-2404
256+
runs-on: ubuntu-latest
257257
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
258258
container:
259259
image: ghcr.io/dojoengine/katana-dev:latest
@@ -285,7 +285,7 @@ jobs:
285285
286286
dojo-integration-test:
287287
needs: [fmt, clippy, build-katana-binary]
288-
runs-on: blacksmith-32vcpu-ubuntu-2404
288+
runs-on: ubuntu-latest-32-cores
289289
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
290290
container:
291291
image: ghcr.io/dojoengine/katana-dev:latest

.github/workflows/weekly-report.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
current-main-size:
1616
name: Current main branch binary size
17-
runs-on: blacksmith-4vcpu-ubuntu-2404
17+
runs-on: ubuntu-latest
1818
container:
1919
image: ghcr.io/dojoengine/katana-dev:latest
2020
outputs:
@@ -33,9 +33,6 @@ jobs:
3333
with:
3434
key: weekly-binary-size-main
3535

36-
- name: Make contracts
37-
run: make contracts
38-
3936
- name: Get binary size (main)
4037
id: binary-size
4138
run: |
@@ -48,7 +45,7 @@ jobs:
4845
4946
latest-release-size:
5047
name: Latest release binary size
51-
runs-on: blacksmith-4vcpu-ubuntu-2404
48+
runs-on: ubuntu-latest
5249
container:
5350
image: ghcr.io/dojoengine/katana-dev:latest
5451
outputs:
@@ -67,9 +64,6 @@ jobs:
6764
with:
6865
key: weekly-binary-size-release
6966

70-
- name: Make contracts
71-
run: make contracts
72-
7367
- name: Get latest release and binary size
7468
id: binary-size
7569
run: |
@@ -91,7 +85,7 @@ jobs:
9185
generate-report:
9286
name: Generate binary size report
9387
needs: [current-main-size, latest-release-size]
94-
runs-on: blacksmith-4vcpu-ubuntu-2404
88+
runs-on: ubuntu-latest
9589
container:
9690
image: ghcr.io/dojoengine/katana-dev:latest
9791

0 commit comments

Comments
 (0)