Skip to content

Commit a67432c

Browse files
Migrate workflows to Blacksmith
1 parent 9bbf5d4 commit a67432c

8 files changed

Lines changed: 22 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313
jobs:
1414
format:
1515
name: Format
16-
runs-on: ubuntu-latest
16+
runs-on: blacksmith-4vcpu-ubuntu-2404
1717
steps:
1818
- uses: actions/checkout@v4
1919

@@ -35,7 +35,7 @@ jobs:
3535

3636
lint:
3737
name: Lint
38-
runs-on: ubuntu-latest
38+
runs-on: blacksmith-4vcpu-ubuntu-2404
3939
steps:
4040
- uses: actions/checkout@v4
4141

@@ -57,7 +57,7 @@ jobs:
5757

5858
typecheck:
5959
name: Typecheck
60-
runs-on: ubuntu-latest
60+
runs-on: blacksmith-4vcpu-ubuntu-2404
6161
steps:
6262
- uses: actions/checkout@v4
6363

@@ -79,7 +79,7 @@ jobs:
7979

8080
test:
8181
name: Test
82-
runs-on: ubuntu-latest
82+
runs-on: blacksmith-4vcpu-ubuntu-2404
8383
env:
8484
TURBO_TEST_CONCURRENCY: 3
8585
steps:
@@ -130,7 +130,7 @@ jobs:
130130
- { target: cloud, shard: 7/8, shard-name: 7of8 }
131131
- { target: cloud, shard: 8/8, shard-name: 8of8 }
132132
- target: selfhost
133-
runs-on: ubuntu-latest
133+
runs-on: blacksmith-4vcpu-ubuntu-2404
134134
timeout-minutes: 30
135135
steps:
136136
- uses: actions/checkout@v4
@@ -191,7 +191,7 @@ jobs:
191191
# Skipped on pull_request: the local scenario boots a real `executor web`
192192
# plus a browser and is currently flaky on PRs. Still runs on push to main.
193193
if: github.event_name != 'pull_request'
194-
runs-on: ubuntu-latest
194+
runs-on: blacksmith-4vcpu-ubuntu-2404
195195
timeout-minutes: 20
196196
steps:
197197
- uses: actions/checkout@v4
@@ -244,7 +244,7 @@ jobs:
244244

245245
desktop-smoke:
246246
name: Desktop smoke build
247-
runs-on: ubuntu-latest
247+
runs-on: blacksmith-4vcpu-ubuntu-2404
248248
steps:
249249
- uses: actions/checkout@v4
250250

@@ -277,19 +277,17 @@ jobs:
277277

278278
selfhost-docker-smoke:
279279
name: Self-host Docker image
280-
runs-on: ubuntu-latest
280+
runs-on: blacksmith-4vcpu-ubuntu-2404
281281
steps:
282282
- uses: actions/checkout@v4
283283

284-
- name: Set up Docker Buildx
285-
uses: docker/setup-buildx-action@v3
284+
- name: Setup Blacksmith Builder
285+
uses: useblacksmith/setup-docker-builder@v1
286286

287287
- name: Build self-host image
288-
uses: docker/build-push-action@v6
288+
uses: useblacksmith/build-push-action@v2
289289
with:
290290
context: .
291291
file: apps/host-selfhost/Dockerfile
292292
push: false
293293
tags: executor-selfhost:ci
294-
cache-from: type=gha
295-
cache-to: type=gha,mode=max

.github/workflows/pkg-pr-new.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
publish:
6565
name: Publish
6666
needs: build-preview-binary
67-
runs-on: ubuntu-latest
67+
runs-on: blacksmith-4vcpu-ubuntu-2404
6868
permissions:
6969
contents: read
7070
pull-requests: write

.github/workflows/preview-sweep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
sweep:
2121
name: Destroy previews for closed PRs
22-
runs-on: ubuntu-latest
22+
runs-on: blacksmith-4vcpu-ubuntu-2404
2323
steps:
2424
- uses: actions/checkout@v4
2525

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
deploy:
2828
name: Deploy preview
2929
if: github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository
30-
runs-on: ubuntu-latest
30+
runs-on: blacksmith-4vcpu-ubuntu-2404
3131
steps:
3232
- uses: actions/checkout@v4
3333

@@ -82,7 +82,7 @@ jobs:
8282
teardown:
8383
name: Tear down preview
8484
if: github.event.action == 'closed' && github.event.pull_request.head.repo.full_name == github.repository
85-
runs-on: ubuntu-latest
85+
runs-on: blacksmith-4vcpu-ubuntu-2404
8686
steps:
8787
- uses: actions/checkout@v4
8888

.github/workflows/publish-desktop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177

178178
release:
179179
needs: build
180-
runs-on: ubuntu-latest
180+
runs-on: blacksmith-4vcpu-ubuntu-2404
181181
permissions:
182182
contents: write
183183

.github/workflows/publish-executor-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121

2222
jobs:
2323
publish:
24-
runs-on: ubuntu-latest
24+
runs-on: blacksmith-4vcpu-ubuntu-2404
2525
permissions:
2626
actions: write
2727
contents: write

.github/workflows/publish-selfhost-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
publish:
21-
runs-on: ubuntu-latest
21+
runs-on: blacksmith-4vcpu-ubuntu-2404
2222
permissions:
2323
contents: read
2424
packages: write
@@ -86,8 +86,8 @@ jobs:
8686
- name: Set up QEMU
8787
uses: docker/setup-qemu-action@v3
8888

89-
- name: Set up Docker Buildx
90-
uses: docker/setup-buildx-action@v3
89+
- name: Setup Blacksmith Builder
90+
uses: useblacksmith/setup-docker-builder@v1
9191

9292
- name: Log in to GHCR
9393
uses: docker/login-action@v3
@@ -97,7 +97,7 @@ jobs:
9797
password: ${{ secrets.GITHUB_TOKEN }}
9898

9999
- name: Build and push self-host image
100-
uses: docker/build-push-action@v6
100+
uses: useblacksmith/build-push-action@v2
101101
with:
102102
context: .
103103
file: apps/host-selfhost/Dockerfile

.github/workflows/release.yml

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

1616
jobs:
1717
release:
18-
runs-on: ubuntu-latest
18+
runs-on: blacksmith-4vcpu-ubuntu-2404
1919
permissions:
2020
actions: write
2121
contents: write

0 commit comments

Comments
 (0)