Skip to content

Commit

Permalink
fix(ci): move osxcross from build image (#7151)
Browse files Browse the repository at this point in the history
Moves it to the base image
  • Loading branch information
ludamad authored Jun 21, 2024
1 parent e192678 commit 7746363
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build-images/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ osxcross:
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN git clone --depth=1 https://github.com/tpoechtrager/osxcross.git \
RUN git clone https://github.com/tpoechtrager/osxcross.git \
&& cd /osxcross \
&& git reset --hard ff8d100f3f026b4ffbe4ce96d8aac4ce06f1278b \
&& export OSX_SDK="MacOSX14.0.sdk" \
Expand Down Expand Up @@ -116,7 +116,6 @@ foundry:
# It acts as the base image for all CI builds, and we build on it to produce a developer box.
build:
BUILD +wasi-sdk
BUILD +osxcross
BUILD +foundry
FROM +base-build
RUN apt update && \
Expand Down Expand Up @@ -154,11 +153,6 @@ build:
# Install wasi-sdk.
COPY +wasi-sdk/opt/wasi-sdk /opt/wasi-sdk

# Install osxcross. Requires developer to mount SDK from their mac host.
COPY +osxcross/opt/osxcross /opt/osxcross
ENV PATH="/opt/osxcross/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/osxcross/lib:$LD_LIBRARY_PATH"

# Install foundry.
COPY +foundry-build/opt/foundry /opt/foundry
ENV PATH="/opt/foundry/bin:$PATH"
Expand Down Expand Up @@ -204,6 +198,7 @@ build:
# We want to produce downstream images: devbox and sysbox. This image is the base image for each.
# It contains a suite of tools that developers might use to develop aztec.
basebox:
BUILD +osxcross
BUILD +build
FROM +build
RUN yes | unminimize
Expand Down Expand Up @@ -237,6 +232,11 @@ basebox:
RUN wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-$(dpkg --print-architecture) -O /usr/local/bin/earthly && \
chmod +x /usr/local/bin/earthly

# Install osxcross. Requires developer to mount SDK from their mac host.
COPY +osxcross/opt/osxcross /opt/osxcross
ENV PATH="/opt/osxcross/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/osxcross/lib:$LD_LIBRARY_PATH"

# Install gh (github cli).
RUN mkdir -p -m 755 /etc/apt/keyrings && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg > /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
Expand Down

0 comments on commit 7746363

Please sign in to comment.