mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
ci: install i386
packages only if host is amd64
, merge layers
This commit is contained in:
parent
e7702292d1
commit
eef863554a
@ -7,13 +7,17 @@ ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
|
|||||||
# (zlib1g-dev is needed for the Qt host binary builds, but should not be used by target binaries)
|
# (zlib1g-dev is needed for the Qt host binary builds, but should not be used by target binaries)
|
||||||
ENV APT_ARGS="-y --no-install-recommends --no-upgrade"
|
ENV APT_ARGS="-y --no-install-recommends --no-upgrade"
|
||||||
|
|
||||||
# Install packages for i386; disabled on aarch64 and arm64 hosts
|
# Install packages for i386 on amd64 hosts, then install common packages
|
||||||
RUN (dpkg --print-architecture | grep -Eq 'aarch64|arm64' || dpkg --add-architecture i386)
|
RUN set -ex; \
|
||||||
RUN (dpkg --print-architecture | grep -Eq 'aarch64|arm64' || (apt-get update && apt-get install $APT_ARGS \
|
apt-get update && \
|
||||||
|
if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
||||||
|
dpkg --add-architecture i386 && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install $APT_ARGS \
|
||||||
g++-multilib \
|
g++-multilib \
|
||||||
wine32) && rm -rf /var/lib/apt/lists/*)
|
wine32; \
|
||||||
|
fi; \
|
||||||
RUN apt-get update && apt-get install $APT_ARGS \
|
apt-get install $APT_ARGS \
|
||||||
autotools-dev \
|
autotools-dev \
|
||||||
automake \
|
automake \
|
||||||
autoconf \
|
autoconf \
|
||||||
|
Loading…
Reference in New Issue
Block a user