Skip to content

Commit

Permalink
workflow: fix broken raspi armhf build
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jun 1, 2023
1 parent 9da4e89 commit baffbad
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ ARG DOCKER_ARCH
ARG DEBIAN_VERSION
FROM ${DOCKER_ARCH}debian:${DEBIAN_VERSION} as build_env

# Default packages
RUN apt-get -y update && apt-get -y install gnupg2 build-essential xxd cmake ccache git-core pkg-config \
libavformat-dev libavutil-dev libavcodec-dev libssl-dev v4l-utils
RUN apt-get -y install debhelper
RUN apt-get -y update && apt-get -y install gnupg2

# Add RPI packages
# Add RPI packages (the whole base system, since RPI ships its own GCC)
ARG DEBIAN_VERSION
ARG BUILD_TYPE="generic"
RUN [ "$BUILD_TYPE" != "raspi" ] || \
( \
( [ "$(dpkg --print-architecture)" != "armhf" ] || echo "deb http://raspbian.raspberrypi.org/raspbian/ $DEBIAN_VERSION main contrib non-free rpi" > /etc/apt/sources.list ) && \
echo "deb http://archive.raspberrypi.org/debian/ $DEBIAN_VERSION main" > /etc/apt/sources.list.d/raspi.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E 82B129927FA3303E && \
apt-get -y update && \
apt-get -y install libcamera-dev liblivemedia-dev \
)

# Default packages
RUN apt-get -y install build-essential xxd cmake ccache git-core pkg-config \
libavformat-dev libavutil-dev libavcodec-dev libssl-dev v4l-utils debhelper

FROM build_env as build
ADD / /src
WORKDIR /src
Expand Down

0 comments on commit baffbad

Please # to comment.