From 7c957d1a282086e53c88ba29d350898b9bc8a66e Mon Sep 17 00:00:00 2001 From: Jiri Jakes Date: Sat, 20 Jan 2024 06:11:13 +0800 Subject: [PATCH] ci: Fix building trezor-firmware in Docker --- ci/Dockerfile.trezor | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ci/Dockerfile.trezor b/ci/Dockerfile.trezor index fb45534..d21f5c1 100644 --- a/ci/Dockerfile.trezor +++ b/ci/Dockerfile.trezor @@ -3,10 +3,16 @@ FROM rust RUN rustup toolchain install nightly RUN rustup default nightly RUN apt-get update -RUN apt-get install scons libsdl2-dev python3 python3-pip libsdl2-image-dev llvm-dev libclang-dev clang protobuf-compiler libusb-1.0-0-dev -y -RUN git clone --recursive -b core/v2.5.3 https://github.com/trezor/trezor-firmware/ trezor-firmware +RUN apt-get install scons libsdl2-dev python3 python3-pip python3-poetry libsdl2-image-dev llvm-dev libclang-dev clang protobuf-compiler libusb-1.0-0-dev -y +RUN git clone --recursive -b core/v2.6.4 https://github.com/trezor/trezor-firmware/ trezor-firmware WORKDIR /trezor-firmware/core -RUN pip install poetry + +# pyblake2 broken on 3.11, trezor-firmware does not use it but depends on it => remove it as dependency +RUN sed -i "/pyblake.*/d" ../pyproject.toml + +# build wrapt 1.13.3 fails => update to 1.14.1 +RUN poetry add "wrapt==1.14.1" + RUN poetry install RUN poetry run make build_unix CMD ["poetry", "run", "./emu.py", "--headless", "--slip0014", "-q"]