mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-28 17:18:29 +00:00
feat(ci): upload emulators from all branches to data.trezor.io
This commit is contained in:
parent
50447de878
commit
cf5416c95b
32
.github/workflows/core.yml
vendored
32
.github/workflows/core.yml
vendored
@ -736,5 +736,37 @@ jobs:
|
|||||||
rm unix/trezor-emu-core
|
rm unix/trezor-emu-core
|
||||||
aws s3 sync --no-progress unix s3://data.trezor.io/dev/firmware/emu-nightly
|
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
|
# Connect
|
||||||
# TODO: core_connect_test
|
# TODO: core_connect_test
|
||||||
|
Loading…
Reference in New Issue
Block a user