diff --git a/.github/docker/ubuntu.Dockerfile b/.github/docker/ubuntu.Dockerfile index 29fcb0a..ec0062a 100644 --- a/.github/docker/ubuntu.Dockerfile +++ b/.github/docker/ubuntu.Dockerfile @@ -10,12 +10,27 @@ ARG VMIN SHELL ["/bin/bash", "-e", "-c"] RUN <> /etc/apt/sources.list -echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse" >> /etc/apt/sources.list -echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-security main restricted universe multiverse" >> /etc/apt/sources.list -echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ ${DISTRIB_CODENAME}-backports main restricted universe multiverse" >> /etc/apt/sources.list +if ((VMAJ < 24)); then + sed -i 's/^deb/deb [arch=amd64]/' /etc/apt/sources.list + cat >> /etc/apt/sources.list <> /etc/apt/sources.list.d/ubuntu.sources <= 20)); then echo \ - gcc-10-aarch64-linux-gnu \ - g++-10-aarch64-linux-gnu; fi) \ libc6:arm64 \ - libstdc++6:arm64; fi) \ + libstdc++6:arm64 \ git \ ninja-build rm -rf /var/lib/apt/lists/* -EOF - -# Make newest version of aarch64 toolchain the default and enable switching. -RUN <