mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
When cross-compile dependency packages cannot be installed, emit a ::error:: annotation so that the failure reason is visible in the GitHub Actions summary. Use \r to ensure the annotation is recognized even inside Docker BuildKit output which prefixes each line with step and timing information. Assisted-by: Claude Code (claude-opus-4-6) Signed-off-by: Adrian Reber <areber@redhat.com>
34 lines
1.1 KiB
Cheetah
34 lines
1.1 KiB
Cheetah
# Add the cross compiler sources
|
|
RUN echo "deb http://deb.debian.org/debian/ stable main" >> /etc/apt/sources.list && \
|
|
dpkg --add-architecture ${DEBIAN_ARCH}
|
|
|
|
ENV CROSS_COMPILE=${CROSS_TRIPLET}- \
|
|
CROSS_ROOT=/usr/${CROSS_TRIPLET} \
|
|
AS=/usr/bin/${CROSS_TRIPLET}-as \
|
|
AR=/usr/bin/${CROSS_TRIPLET}-ar \
|
|
CC=/usr/bin/${CROSS_TRIPLET}-gcc \
|
|
CPP=/usr/bin/${CROSS_TRIPLET}-cpp \
|
|
CXX=/usr/bin/${CROSS_TRIPLET}-g++ \
|
|
LD=/usr/bin/${CROSS_TRIPLET}-ld \
|
|
FC=/usr/bin/${CROSS_TRIPLET}-gfortran
|
|
|
|
ENV PATH="${PATH}:${CROSS_ROOT}/bin" \
|
|
PKG_CONFIG_PATH=/usr/lib/${CROSS_TRIPLET}/pkgconfig
|
|
|
|
ARG CI_CROSS_COMPILE
|
|
ENV CI_CROSS_COMPILE=${CI_CROSS_COMPILE}
|
|
|
|
COPY contrib/dependencies/apt-cross-packages.sh /criu/contrib/dependencies/apt-cross-packages.sh
|
|
COPY contrib/apt-install /criu/contrib/apt-install
|
|
WORKDIR /criu
|
|
RUN /criu/contrib/dependencies/apt-cross-packages.sh
|
|
|
|
COPY . /criu
|
|
|
|
# amdgpu_plugin is not supported on armv7 and riscv64
|
|
RUN make mrproper && date && \
|
|
make -j $(nproc) && \
|
|
if [ "$SUBARCH" != "armv7" ] && [ "$ARCH" != "riscv64" ]; then \
|
|
make -j $(nproc) amdgpu_plugin; \
|
|
fi && \
|
|
make -j $(nproc) zdtm && date
|