Add rust support to android-arm

This commit is contained in:
Jonas Vautherin
2025-02-15 22:29:27 +01:00
parent d91bdd6564
commit e6619f6a22
2 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,12 @@ RUN mkdir -p /build && \
find ${CROSS_ROOT} -exec chmod a+r '{}' \; && \
find ${CROSS_ROOT} -executable -exec chmod a+x '{}' \;
# Prepare Rust
ENV PATH="/root/.cargo/bin/:$PATH"
RUN rustup target add armv7-linux-androideabi
COPY config.toml /root/.cargo/
# Prepare CMake
COPY Toolchain.cmake ${CROSS_ROOT}/
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake