Skip to content

Commit c75d12e

Browse files
committed
Build docker image once before building cores.
1 parent fb7080b commit c75d12e

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,31 @@ permissions:
99
contents: write # Required for creating releases and pushing tags
1010

1111
jobs:
12+
docker-build:
13+
runs-on: sprinters:aws:ubuntu-24.04-arm:c7gd.xlarge:temp=32
14+
timeout-minutes: 30
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v5
19+
with:
20+
submodules: recursive
21+
fetch-depth: 0
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
26+
- name: Build Docker image (with cache)
27+
uses: docker/build-push-action@v6
28+
with:
29+
context: .
30+
load: true
31+
tags: lessui-cores-builder:latest
32+
cache-from: type=gha
33+
cache-to: type=gha,mode=max
34+
1235
build:
36+
needs: docker-build
1337
runs-on: sprinters:aws:ubuntu-24.04-arm:c7gd.xlarge:temp=32
1438
timeout-minutes: 120 # 2 hours max per architecture
1539
strategy:
@@ -27,14 +51,13 @@ jobs:
2751
- name: Set up Docker Buildx
2852
uses: docker/setup-buildx-action@v3
2953

30-
- name: Build Docker image (with cache)
54+
- name: Build Docker image (from cache)
3155
uses: docker/build-push-action@v6
3256
with:
3357
context: .
3458
load: true
3559
tags: lessui-cores-builder:latest
3660
cache-from: type=gha
37-
cache-to: type=gha,mode=max
3861

3962
- name: Clean previous builds
4063
run: make clean

0 commit comments

Comments
 (0)