fix build
Some checks failed
Build / Build - linux (push) Successful in 3m33s
Build / Build - macos (push) Failing after 9s
Build / Build - windows (push) Successful in 2m55s

This commit is contained in:
2025-12-11 21:01:25 +01:00
parent f9f81e6dcf
commit e6c30dc403
3 changed files with 25 additions and 17 deletions

View File

@@ -1,5 +1,6 @@
FROM rust:latest
# Install GNU tar and ensure it's used instead of BusyBox tar
# Install system dependencies and tools
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nodejs \
@@ -7,6 +8,7 @@ RUN apt-get update && \
tar \
gzip \
curl \
mingw-w64 \
&& rm -rf /var/lib/apt/lists/* && \
# Check if /bin/tar is BusyBox and replace it with GNU tar
if /bin/tar --version 2>&1 | grep -q "BusyBox"; then \
@@ -21,4 +23,8 @@ RUN SCCACHE_VERSION=0.7.4 && \
curl -L "$SCCACHE_URL" | tar xz && \
chmod +x sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache && \
mv sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache /usr/local/bin/ && \
rm -rf sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl
rm -rf sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl
# Install cargo-zigbuild for cross-compilation (macOS targets)
RUN cargo install cargo-zigbuild && \
rm -rf /usr/local/cargo/registry