CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
48 lines
2.1 KiB
Docker
48 lines
2.1 KiB
Docker
#===- llvm/utils/docker/debian12/build/Dockerfile -------------------------===//
|
|
#
|
|
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
#
|
|
#===----------------------------------------------------------------------===//
|
|
# Stage 1. Check out LLVM source code and run the build.
|
|
FROM launcher.gcr.io/google/debian12:latest AS builder
|
|
LABEL maintainer="LLVM Developers"
|
|
# Install build dependencies of llvm.
|
|
# First, Update the apt's source list and include the sources of the packages.
|
|
RUN grep deb /etc/apt/sources.list | \
|
|
sed 's/^deb/deb-src /g' >> /etc/apt/sources.list
|
|
# Install compiler, python and subversion.
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends ca-certificates gnupg \
|
|
build-essential cmake make python3 zlib1g wget subversion unzip git && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
# Install a newer ninja release. It seems the older version in the debian repos
|
|
# randomly crashes when compiling llvm.
|
|
RUN wget "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip" && \
|
|
echo "6f98805688d19672bd699fbbfa2c2cf0fc054ac3df1f0e6a47664d963d530255 ninja-linux.zip" \
|
|
| sha256sum -c && \
|
|
unzip ninja-linux.zip -d /usr/local/bin && \
|
|
rm ninja-linux.zip
|
|
|
|
ADD checksums /tmp/checksums
|
|
ADD scripts /tmp/scripts
|
|
|
|
# Checkout the source code.
|
|
ARG checkout_args
|
|
RUN /tmp/scripts/checkout.sh ${checkout_args}
|
|
# Run the build. Results of the build will be available at /tmp/clang-install/.
|
|
ARG buildscript_args
|
|
RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install ${buildscript_args}
|
|
|
|
|
|
# Stage 2. Produce a minimal release image with build results.
|
|
FROM launcher.gcr.io/google/debian12:latest
|
|
LABEL maintainer="LLVM Developers"
|
|
# Install packages for minimal useful image.
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends binutils && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
# Copy build results of stage 1 to /usr/local.
|
|
COPY --from=builder /tmp/clang-install/ /usr/local/
|