From e1019ac7b1f8450c49e8f70ba62e76548bd84fb6 Mon Sep 17 00:00:00 2001 From: grdddj Date: Mon, 18 Nov 2024 11:58:44 +0100 Subject: [PATCH] feat(ci): upload emulators from all branches to data.trezor.io --- .github/workflows/core.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 12ce4dd884..e5375b0747 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -736,5 +736,37 @@ jobs: rm unix/trezor-emu-core aws s3 sync --no-progress unix s3://data.trezor.io/dev/firmware/emu-nightly + core_upload_emu_branch: + name: Upload emulator binaries for the current branch + # Not building it for nightly CI + if: github.event_name != 'schedule' + runs-on: ubuntu-latest + needs: + # Do not include ARM, they are only built on nightly + - core_emu + steps: + - uses: actions/download-artifact@v4 + with: + pattern: core-emu*debuglink-noasan + merge-multiple: true + - name: Configure aws credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data + aws-region: eu-west-1 + continue-on-error: true + - name: Determine branch name + run: | + if [ "${{ github.event_name }}" == "pull_request" ]; then + branch_name=${{ github.head_ref }} + else + branch_name=${{ github.ref_name }} + fi + echo "branch_name=$branch_name" >> $GITHUB_ENV + - name: Upload artifacts to branch directory + run: | + rm unix/trezor-emu-core + aws s3 sync --no-progress unix s3://data.trezor.io/dev/firmware/emu-branches/$branch_name + # Connect # TODO: core_connect_test