From 9d45b0edf4de2a97fcb5c563982cb35bd4e9bf97 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 5 Aug 2022 12:18:21 -0700 Subject: [PATCH] Host our own musl build toolchain --- Earthfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Earthfile b/Earthfile index c5e688b67..06322965c 100644 --- a/Earthfile +++ b/Earthfile @@ -18,10 +18,9 @@ crosscompiler: # This image is missing a few platforms, so we'll add them locally FROM --platform=linux/amd64 bdwyertech/go-crosscompile RUN apk add --update --no-cache tar gzip >> /dev/null - # RUN curl -sfL "https://musl.cc/armv7l-linux-musleabihf-cross.tgz" | tar xf - -C /usr/ --strip-components=1 - RUN curl -fL "https://musl.cc/armv7l-linux-musleabihf-cross.tgz" | tar xf - -C /usr/ --strip-components=1 - RUN curl -sfL "https://musl.cc/i686-linux-musl-cross.tgz" | tar xf - -C /usr/ --strip-components=1 - RUN curl -sfL "https://musl.cc/x86_64-linux-musl-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 + RUN curl -sfL "https://owncast-infra.nyc3.cdn.digitaloceanspaces.com/build/armv7l-linux-musleabihf-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 + RUN curl -sfL "https://owncast-infra.nyc3.cdn.digitaloceanspaces.com/build/i686-linux-musl-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 + RUN curl -sfL "https://owncast-infra.nyc3.cdn.digitaloceanspaces.com/build/x86_64-linux-musl-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 code: FROM --platform=linux/amd64 +crosscompiler