Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): move osxcross from build image #7151

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading