mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-04-04 13:09:15 +02:00
commit
6eda62728a
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -1144,9 +1144,9 @@ jobs:
|
|||||||
- name: cpython build test
|
- name: cpython build test
|
||||||
if: ${{ matrix.arch_name.cpython == 'yes' }}
|
if: ${{ matrix.arch_name.cpython == 'yes' }}
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch v3.9.13 https://github.com/python/cpython.git
|
git clone --depth 1 --branch v3.11.2 https://github.com/python/cpython.git
|
||||||
cd cpython
|
cd cpython
|
||||||
./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} ./configure ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no --disable-ipv6 ${{ matrix.arch_name.cpython_arg }} --build=x86_64-linux-gnu --enable-shared
|
./../tools/dockcross-command.sh ${{ matrix.arch_name.image }} ./configure ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no --disable-ipv6 ${{ matrix.arch_name.cpython_arg }} --build=x86_64-linux-gnu --with-build-python --enable-shared
|
||||||
./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2
|
./../tools/dockcross-make-builder.sh ${{ matrix.arch_name.image }} -j2
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf cpython
|
rm -rf cpython
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ Dockerfile
|
|||||||
web-wasm/Dockerfile
|
web-wasm/Dockerfile
|
||||||
*/imagefiles/*
|
*/imagefiles/*
|
||||||
!imagefiles/*
|
!imagefiles/*
|
||||||
|
crosstool-ng/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ARG DOCKER_IMAGE=debian:bullseye-slim
|
ARG DOCKER_IMAGE=debian:bookworm-slim
|
||||||
FROM $DOCKER_IMAGE
|
FROM $DOCKER_IMAGE
|
||||||
|
|
||||||
LABEL maintainer="Matt McCormick matt.mccormick@kitware.com"
|
LABEL maintainer="Matt McCormick matt.mccormick@kitware.com"
|
||||||
|
@ -2,7 +2,7 @@ ARG ORG=dockcross
|
|||||||
FROM ${ORG}/base:latest
|
FROM ${ORG}/base:latest
|
||||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
||||||
RUN \
|
RUN \
|
||||||
sed -i '/debian-security/d' /etc/apt/sources.list && \
|
echo Enabled: no >> /etc/apt/sources.list.d/debian.sources && \
|
||||||
dpkg --add-architecture arm64 && \
|
dpkg --add-architecture arm64 && \
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ RUN \
|
|||||||
patch \
|
patch \
|
||||||
perl \
|
perl \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python \
|
python3 \
|
||||||
ruby \
|
ruby \
|
||||||
scons \
|
scons \
|
||||||
sed \
|
sed \
|
||||||
|
@ -23,10 +23,11 @@ cd /tmp
|
|||||||
curl -# -LO https://bootstrap.pypa.io/pip/get-pip.py
|
curl -# -LO https://bootstrap.pypa.io/pip/get-pip.py
|
||||||
# https://github.com/pypa/setuptools/issues/2993
|
# https://github.com/pypa/setuptools/issues/2993
|
||||||
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
export SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||||
${PYTHON} get-pip.py --ignore-installed
|
# Add --break-system-packages to fix change since python 3.11: https://stackoverflow.com/a/75722775/10152334
|
||||||
|
${PYTHON} get-pip.py --ignore-installed --break-system-packages
|
||||||
rm get-pip.py
|
rm get-pip.py
|
||||||
|
|
||||||
${PYTHON} -m pip install --upgrade --ignore-installed setuptools
|
${PYTHON} -m pip install --break-system-packages --upgrade --ignore-installed setuptools
|
||||||
${PYTHON} -m pip install --ignore-installed conan meson
|
${PYTHON} -m pip install --break-system-packages --ignore-installed conan meson
|
||||||
# Purge cache to save space: https://stackoverflow.com/questions/37513597/is-it-safe-to-delete-cache-pip-directory
|
# Purge cache to save space: https://stackoverflow.com/questions/37513597/is-it-safe-to-delete-cache-pip-directory
|
||||||
${PYTHON} -m pip cache purge
|
${PYTHON} -m pip cache purge
|
||||||
|
@ -3,13 +3,13 @@ FROM ${ORG}/base:latest
|
|||||||
|
|
||||||
LABEL maintainer="Matt McCormick matt.mccormick@kitware.com"
|
LABEL maintainer="Matt McCormick matt.mccormick@kitware.com"
|
||||||
|
|
||||||
ARG CLANG_VERSION=14
|
ARG CLANG_VERSION=15
|
||||||
ENV CLANG_VERSION=${CLANG_VERSION}
|
ENV CLANG_VERSION=${CLANG_VERSION}
|
||||||
|
|
||||||
RUN echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main" >> /etc/apt/sources.list \
|
RUN echo "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main" >> /etc/apt/sources.list.d/llvm.list \
|
||||||
&& echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-${CLANG_VERSION} main" >> /etc/apt/sources.list \
|
&& echo "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${CLANG_VERSION} main" >> /etc/apt/sources.list.d/llvm.list \
|
||||||
&& echo "deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main" >> /etc/apt/sources.list \
|
&& echo "deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm main" >> /etc/apt/sources.list.d/llvm.list \
|
||||||
&& echo "deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-${CLANG_VERSION} main" >> /etc/apt/sources.list \
|
&& echo "deb-src http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${CLANG_VERSION} main" >> /etc/apt/sources.list.d/llvm.list \
|
||||||
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
|
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get -y install clang-${CLANG_VERSION} libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev clang-format-${CLANG_VERSION} clang-tidy-${CLANG_VERSION} lldb-${CLANG_VERSION} liblld-${CLANG_VERSION}-dev \
|
&& apt-get -y install clang-${CLANG_VERSION} libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev clang-format-${CLANG_VERSION} clang-tidy-${CLANG_VERSION} lldb-${CLANG_VERSION} liblld-${CLANG_VERSION}-dev \
|
||||||
@ -18,6 +18,7 @@ RUN echo "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main" >> /et
|
|||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${CLANG_VERSION} 90 \
|
&& update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${CLANG_VERSION} 90 \
|
||||||
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||||
|
&& update-alternatives --remove-all cpp \
|
||||||
&& update-alternatives --install /usr/bin/cpp cpp /usr/bin/clang++-${CLANG_VERSION} 90 \
|
&& update-alternatives --install /usr/bin/cpp cpp /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||||
&& update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 90 \
|
&& update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 90 \
|
||||||
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 90 \
|
||||||
|
@ -11,8 +11,8 @@ RUN apt-get update && \
|
|||||||
apt-get install -y && \
|
apt-get install -y && \
|
||||||
\
|
\
|
||||||
curl -sS https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm.gpg && \
|
curl -sS https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm.gpg && \
|
||||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/llvm.gpg] http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-${LLVM_VERSION} main" >> /etc/apt/sources.list.d/llvm.list && \
|
echo "deb [signed-by=/etc/apt/trusted.gpg.d/llvm.gpg] http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${LLVM_VERSION} main" >> /etc/apt/sources.list.d/llvm.list && \
|
||||||
echo "deb-src [signed-by=/etc/apt/trusted.gpg.d/llvm.gpg] http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-${LLVM_VERSION} main" >> /etc/apt/sources.list.d/llvm.list && \
|
echo "deb-src [signed-by=/etc/apt/trusted.gpg.d/llvm.gpg] http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${LLVM_VERSION} main" >> /etc/apt/sources.list.d/llvm.list && \
|
||||||
\
|
\
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y clang-${LLVM_VERSION} lld-${LLVM_VERSION} && \
|
apt-get install -y clang-${LLVM_VERSION} lld-${LLVM_VERSION} && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user