Skip to content

Commit 7cf2c7d

Browse files
committed
Fix CircleCI: build on amd64 with earthly 0.8.16
The Earthfile requires earthly 0.8 (VERSION --global-cache 0.8), but CircleCI pinned earthly 0.7.23. It also ran on arm.medium, while the cross-rs and osxcross images are linux/amd64-only and the Earthfile pins FROM --platform=linux/amd64. Switch to an amd64 machine (resource_class: medium) and download earthly-linux-amd64 v0.8.16 so the images build natively.
1 parent 4412126 commit 7cf2c7d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ jobs:
33
build:
44
machine:
55
image: ubuntu-2204:2023.10.1
6-
resource_class: arm.medium
6+
# amd64 host: the cross-rs images (and the osxcross builder) are linux/amd64,
7+
# and the Earthfile pins FROM --platform=linux/amd64, so an amd64 runner
8+
# builds them natively (no qemu emulation). The aarch64/darwin/windows
9+
# binaries are produced by the cross toolchains regardless of host arch.
10+
resource_class: medium
711
steps:
812
- checkout
9-
- run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.7.23/earthly-linux-arm64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
13+
# earthly 0.8+ is required by the Earthfile (VERSION --global-cache 0.8).
14+
- run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.16/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
1015
- run:
1116
command: FORCE_COLOR=1 earthly --ci --no-output +archive
1217
no_output_timeout: 2h

0 commit comments

Comments
 (0)