Skip to content

Commit 7dd2997

Browse files
authored
ci : enable main-cuda build (#3282)
This commit re-enables the main-cuda Docker build in the CI workflow. The main-cuda Dockerfile has been updated to remove build artifacts and also print the size of the /app directory after the build. A similar change was recently made to the musa Dockerfile, and perhaps this job was also having similar disk space issues. The motivation for this change is that this configuration has been disabled for a while due to persistent build failures. However, the actual logs are now longer available. Resolves: #3040
1 parent c85b1ae commit 7dd2997

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.devops/main-cuda.Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENV CUDA_DOCKER_ARCH=${CUDA_DOCKER_ARCH}
1616

1717
RUN apt-get update && \
1818
apt-get install -y build-essential libsdl2-dev wget cmake git \
19+
&& apt-get clean \
1920
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
2021

2122
# Ref: https://stackoverflow.com/a/53464012
@@ -26,15 +27,24 @@ COPY .. .
2627
# Enable cuBLAS
2728
RUN make base.en CMAKE_ARGS="-DGGML_CUDA=1"
2829

30+
RUN find /app/build -name "*.o" -delete && \
31+
find /app/build -name "*.a" -delete && \
32+
rm -rf /app/build/CMakeFiles && \
33+
rm -rf /app/build/cmake_install.cmake && \
34+
rm -rf /app/build/_deps
35+
2936
FROM ${BASE_CUDA_RUN_CONTAINER} AS runtime
3037
ENV CUDA_MAIN_VERSION=12.3
3138
ENV LD_LIBRARY_PATH /usr/local/cuda-${CUDA_MAIN_VERSION}/compat:$LD_LIBRARY_PATH
3239
WORKDIR /app
3340

3441
RUN apt-get update && \
3542
apt-get install -y curl ffmpeg wget cmake git \
43+
&& apt-get clean \
3644
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
3745

3846
COPY --from=build /app /app
47+
RUN du -sh /app/*
48+
RUN find /app -type f -size +100M
3949
ENV PATH=/app/build/bin:$PATH
4050
ENTRYPOINT [ "bash", "-c" ]

.github/workflows/docker.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
- { tag: "main", dockerfile: ".devops/main.Dockerfile", platform: "linux/amd64" }
2121
- { tag: "main-musa", dockerfile: ".devops/main-musa.Dockerfile", platform: "linux/amd64" }
2222
- { tag: "main-intel", dockerfile: ".devops/main-intel.Dockerfile", platform: "linux/amd64" }
23-
#TODO: the cuda image keeps failing - disable for now
24-
# https://github.com/ggerganov/whisper.cpp/actions/runs/11019444428/job/30602020339
25-
#- { tag: "main-cuda", dockerfile: ".devops/main-cuda.Dockerfile", platform: "linux/amd64" }
23+
- { tag: "main-cuda", dockerfile: ".devops/main-cuda.Dockerfile", platform: "linux/amd64" }
2624

2725
steps:
2826
- name: Check out the repo

0 commit comments

Comments
 (0)