From f9b43efcbe5549ac8324763e7bab46312b33a9db Mon Sep 17 00:00:00 2001 From: vdovhanych Date: Mon, 20 Dec 2021 13:33:15 +0100 Subject: [PATCH] ci: jobs for deploying arm emulators --- ci/deploy.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ci/deploy.yml b/ci/deploy.yml index cad3e42a54..7bb0885500 100644 --- a/ci/deploy.yml +++ b/ci/deploy.yml @@ -182,12 +182,16 @@ release core unix debug deploy: before_script: [] # no poetry needs: - core unix frozen debug build + - core unix frozen debug build arm script: - export VERSION=$(./tools/version.sh core/embed/firmware/version.h) - DEST="$DEPLOY_PATH/trezor-emu-core-v$VERSION" - - echo "Deploying to $DEST" + - DEST_ARM="$DEPLOY_PATH/trezor-emu-core-arm-v$VERSION" + - echo "Deploying to $DEST and $DEST_ARM" - nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 core/build/unix/trezor-emu-core" + - nix-shell -p patchelf --run "patchelf --set-interpreter /lib/ld-linux-aarch64.so.1 core/build/unix/trezor-emu-core-arm" - rsync --delete -va core/build/unix/trezor-emu-core "$DEST" + - rsync --delete -va core/build/unix/trezor-emu-core-arm "$DEST_ARM" only: - /^core\// except: @@ -203,12 +207,16 @@ release legacy unix debug deploy: before_script: [] # no poetry needs: - legacy emu regular debug build + - legacy emu regular debug build arm script: - export VERSION=$(./tools/version.sh legacy/firmware/version.h) - DEST="$DEPLOY_PATH/trezor-emu-legacy-v$VERSION" - - echo "Deploying to $DEST" + - DEST_ARM="$DEPLOY_PATH/trezor-emu-legacy-arm-v$VERSION" + - echo "Deploying to $DEST and $DEST_ARM" - nix-shell -p patchelf --run "patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 legacy/firmware/trezor.elf" + - nix-shell -p patchelf --run "patchelf --set-interpreter /lib/ld-linux-aarch64.so.1 legacy/firmware/trezor-arm.elf" - rsync --delete -va legacy/firmware/trezor.elf "$DEST" + - rsync --delete -va legacy/firmware/trezor-arm.elf "$DEST_ARM" only: - /^legacy\// except: