mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 20:38:10 +00:00
ci: update action upload-artifact to latest version
[skip_ci]
This commit is contained in:
parent
1ff789101b
commit
a8beb03428
4
.github/actions/ui-report/action.yml
vendored
4
.github/actions/ui-report/action.yml
vendored
@ -32,9 +32,9 @@ runs:
|
|||||||
aws s3 sync ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
|
aws s3 sync ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
|
||||||
# TODO: generate directory listing / autoindex
|
# TODO: generate directory listing / autoindex
|
||||||
shell: sh
|
shell: sh
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ui-records-${{ github.job }}
|
name: ui-records-${{ github.job }}-${{ strategy.job-index }}
|
||||||
path: |
|
path: |
|
||||||
# used by core_ui_master
|
# used by core_ui_master
|
||||||
screens_${{ inputs.model }}-${{ github.job }}.tar
|
screens_${{ inputs.model }}-${{ github.job }}.tar
|
||||||
|
4
.github/workflows/common.yml
vendored
4
.github/workflows/common.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run make -C crypto"
|
- run: nix-shell --run "poetry run make -C crypto"
|
||||||
- run: nix-shell --run "export ADDRESS_SANITIZER=0; poetry run make -C crypto_noasan"
|
- run: nix-shell --run "export ADDRESS_SANITIZER=0; poetry run make -C crypto_noasan"
|
||||||
- run: mv crypto_noasan/tests/test_check crypto/tests/test_check_noasan
|
- run: mv crypto_noasan/tests/test_check crypto/tests/test_check_noasan
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: crypto-build
|
name: crypto-build
|
||||||
path: |
|
path: |
|
||||||
@ -47,7 +47,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- run: nix-shell --run "poetry install"
|
- run: nix-shell --run "poetry install"
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: crypto-build
|
name: crypto-build
|
||||||
path: crypto/tests
|
path: crypto/tests
|
||||||
|
6
.github/workflows/core-hw.yml
vendored
6
.github/workflows/core-hw.yml
vendored
@ -55,7 +55,7 @@ jobs:
|
|||||||
nix-shell --run "poetry run pytest -v tests/device_tests"
|
nix-shell --run "poetry run pytest -v tests/device_tests"
|
||||||
- run: tail -n50 trezor.log || true
|
- run: tail -n50 trezor.log || true
|
||||||
if: failure()
|
if: failure()
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-hardware-${{ matrix.model }}-${{ matrix.coins }}
|
name: core-hardware-${{ matrix.model }}-${{ matrix.coins }}
|
||||||
path: trezor.log
|
path: trezor.log
|
||||||
@ -96,7 +96,7 @@ jobs:
|
|||||||
nix-shell --arg fullDeps true --run "./core/tests/run_tests_device_emu_monero.sh $TESTOPTS"
|
nix-shell --arg fullDeps true --run "./core/tests/run_tests_device_emu_monero.sh $TESTOPTS"
|
||||||
- run: tail -n50 trezor.log || true
|
- run: tail -n50 trezor.log || true
|
||||||
if: failure()
|
if: failure()
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-hardware-monero-${{ matrix.model }}
|
name: core-hardware-monero-${{ matrix.model }}
|
||||||
path: trezor.log
|
path: trezor.log
|
||||||
@ -130,7 +130,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run legacy/script/setup"
|
- run: nix-shell --run "poetry run legacy/script/setup"
|
||||||
- run: nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
- run: nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
||||||
- run: nix-shell --arg hardwareTest true --run "ci/hardware_tests/t1_hw_test.sh"
|
- run: nix-shell --arg hardwareTest true --run "ci/hardware_tests/t1_hw_test.sh"
|
||||||
- uses: actions/upload-artifact@v4.3.1
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: legacy-hardware-${{ matrix.coins }}
|
name: legacy-hardware-${{ matrix.coins }}
|
||||||
path: ci/hardware_tests/*.mp4
|
path: ci/hardware_tests/*.mp4
|
||||||
|
72
.github/workflows/core.yml
vendored
72
.github/workflows/core.yml
vendored
@ -49,7 +49,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run make -C core build_firmware"
|
- run: nix-shell --run "poetry run make -C core build_firmware"
|
||||||
- run: nix-shell --run "poetry run make -C core sizecheck"
|
- run: nix-shell --run "poetry run make -C core sizecheck"
|
||||||
if: matrix.coins == 'universal' && matrix.type != 'debuglink'
|
if: matrix.coins == 'universal' && matrix.type != 'debuglink'
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}
|
name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}
|
||||||
path: |
|
path: |
|
||||||
@ -90,7 +90,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run make -C core build_bootloader_emu"
|
- run: nix-shell --run "poetry run make -C core build_bootloader_emu"
|
||||||
if: matrix.coins == 'universal'
|
if: matrix.coins == 'universal'
|
||||||
- run: nix-shell --run "poetry run make -C core build_unix_frozen"
|
- run: nix-shell --run "poetry run make -C core build_unix_frozen"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
|
||||||
path: |
|
path: |
|
||||||
@ -151,7 +151,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-noasan
|
name: core-emu-${{ matrix.model }}-universal-debuglink-noasan
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -188,7 +188,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -197,7 +197,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run make -C core ${{ env.ACTIONS_DO_UI_TEST == 'true' && 'test_emu_ui_multicore' || 'test_emu' }}"
|
- run: nix-shell --run "poetry run make -C core ${{ env.ACTIONS_DO_UI_TEST == 'true' && 'test_emu_ui_multicore' || 'test_emu' }}"
|
||||||
- run: tail -n50 tests/trezor.log || true
|
- run: tail -n50 tests/trezor.log || true
|
||||||
if: failure()
|
if: failure()
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-device-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.asan }}
|
name: core-device-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.asan }}
|
||||||
path: tests/trezor.log
|
path: tests/trezor.log
|
||||||
@ -209,9 +209,9 @@ jobs:
|
|||||||
if: ${{ always() && env.ACTIONS_DO_UI_TEST == 'true' }}
|
if: ${{ always() && env.ACTIONS_DO_UI_TEST == 'true' }}
|
||||||
- uses: ./.github/actions/ui-comment
|
- uses: ./.github/actions/ui-comment
|
||||||
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
|
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
# there will be more coverage files (one per core)
|
# there will be more coverage files (one per core)
|
||||||
path: core/src/.coverage.*
|
path: core/src/.coverage.*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
@ -234,7 +234,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -244,7 +244,7 @@ jobs:
|
|||||||
if: ${{ matrix.asan == 'noasan' }}
|
if: ${{ matrix.asan == 'noasan' }}
|
||||||
- run: nix-shell --run "poetry run make -C core test_emu_click"
|
- run: nix-shell --run "poetry run make -C core test_emu_click"
|
||||||
if: ${{ matrix.asan == 'asan' }}
|
if: ${{ matrix.asan == 'asan' }}
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-click-${{ matrix.model }}-${{ matrix.asan }}
|
name: core-click-${{ matrix.model }}-${{ matrix.asan }}
|
||||||
path: tests/trezor.log
|
path: tests/trezor.log
|
||||||
@ -255,9 +255,9 @@ jobs:
|
|||||||
model: ${{ matrix.model }}
|
model: ${{ matrix.model }}
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_click || true
|
- run: mv core/src/.coverage core/.coverage.test_click || true
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
path: core/.coverage.*
|
path: core/.coverage.*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -304,7 +304,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -319,9 +319,9 @@ jobs:
|
|||||||
model: ${{ matrix.model }}
|
model: ${{ matrix.model }}
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_persistence || true
|
- run: mv core/src/.coverage core/.coverage.test_persistence || true
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
path: core/.coverage.*
|
path: core/.coverage.*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-noasan
|
name: core-emu-${{ matrix.model }}-universal-debuglink-noasan
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -347,7 +347,7 @@ jobs:
|
|||||||
- run: nix-shell --run "git clone --depth=1 https://github.com/bitcoin-core/HWI.git"
|
- run: nix-shell --run "git clone --depth=1 https://github.com/bitcoin-core/HWI.git"
|
||||||
# see python_test for explanation of _PYTHON_SYSCONFIGDATA_NAME
|
# see python_test for explanation of _PYTHON_SYSCONFIGDATA_NAME
|
||||||
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd HWI && poetry install && poetry run ./test/test_trezor.py --model_t ../core/build/unix/trezor-emu-core bitcoind"
|
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd HWI && poetry install && poetry run ./test/test_trezor.py --model_t ../core/build/unix/trezor-emu-core bitcoind"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-test-hwi-${{ matrix.model }}
|
name: core-test-hwi-${{ matrix.model }}
|
||||||
path: HWI/trezor-t-emulator.stdout
|
path: HWI/trezor-t-emulator.stdout
|
||||||
@ -371,7 +371,7 @@ jobs:
|
|||||||
- run: nix-shell --run "poetry run make -C core test_emu"
|
- run: nix-shell --run "poetry run make -C core test_emu"
|
||||||
- run: nix-shell --run "mkdir core/prof/memperf-html"
|
- run: nix-shell --run "mkdir core/prof/memperf-html"
|
||||||
- run: nix-shell --run "poetry run core/tools/alloc.py --alloc-data=core/src/alloc_data.txt html core/prof/memperf-html"
|
- run: nix-shell --run "poetry run core/tools/alloc.py --alloc-data=core/src/alloc_data.txt html core/prof/memperf-html"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-memperf-${{ matrix.model }}
|
name: core-memperf-${{ matrix.model }}
|
||||||
path: |
|
path: |
|
||||||
@ -395,7 +395,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-firmware-${{ matrix.model }}-universal-normal # FIXME: s/normal/debuglink/
|
name: core-firmware-${{ matrix.model }}-universal-normal # FIXME: s/normal/debuglink/
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -418,13 +418,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-firmware-${{ matrix.model }}-universal-normal
|
name: core-firmware-${{ matrix.model }}-universal-normal
|
||||||
path: core/build
|
path: core/build
|
||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "poetry run core/tools/size/compare_master.py core/build/firmware/firmware.elf -r firmware_elf_size_report.txt"
|
- run: nix-shell --run "poetry run core/tools/size/compare_master.py core/build/firmware/firmware.elf -r firmware_elf_size_report.txt"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-test-flash-size-${{ matrix.model }}
|
name: core-test-flash-size-${{ matrix.model }}
|
||||||
path: firmware_elf_size_report.txt
|
path: firmware_elf_size_report.txt
|
||||||
@ -446,7 +446,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -457,7 +457,7 @@ jobs:
|
|||||||
# see python_test job for _PYTHON_SYSCONFIGDATA_NAME explanation
|
# see python_test job for _PYTHON_SYSCONFIGDATA_NAME explanation
|
||||||
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && poetry install"
|
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && poetry install"
|
||||||
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && poetry run make -C core test_emu_monero"
|
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && poetry run make -C core test_emu_monero"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-test-monero-${{ matrix.model }}-${{ matrix.asan }}
|
name: core-test-monero-${{ matrix.model }}-${{ matrix.asan }}
|
||||||
path: |
|
path: |
|
||||||
@ -466,9 +466,9 @@ jobs:
|
|||||||
retention-days: 7
|
retention-days: 7
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_emu_monero || true
|
- run: mv core/src/.coverage core/.coverage.test_emu_monero || true
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
path: core/.coverage.*
|
path: core/.coverage.*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
@ -488,7 +488,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
@ -496,16 +496,16 @@ jobs:
|
|||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "poetry run make -C tests/fido_tests/u2f-tests-hid"
|
- run: nix-shell --run "poetry run make -C tests/fido_tests/u2f-tests-hid"
|
||||||
- run: nix-shell --run "poetry run make -C core test_emu_u2f"
|
- run: nix-shell --run "poetry run make -C core test_emu_u2f"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-test-u2f-${{ matrix.model }}-${{ matrix.asan }}
|
name: core-test-u2f-${{ matrix.model }}-${{ matrix.asan }}
|
||||||
path: tests/trezor.log
|
path: tests/trezor.log
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_emu_u2f || true
|
- run: mv core/src/.coverage core/.coverage.test_emu_u2f || true
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
path: core/.coverage.*
|
path: core/.coverage.*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
@ -525,14 +525,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
name: core-emu-${{ matrix.model }}-universal-debuglink-${{ matrix.asan }}
|
||||||
path: core/build
|
path: core/build
|
||||||
- run: chmod +x core/build/unix/trezor-emu-core*
|
- run: chmod +x core/build/unix/trezor-emu-core*
|
||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "poetry run make -C core test_emu_fido2"
|
- run: nix-shell --run "poetry run make -C core test_emu_fido2"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-test-fido2-${{ matrix.model }}-${{ matrix.asan }}
|
name: core-test-fido2-${{ matrix.model }}-${{ matrix.asan }}
|
||||||
path: |
|
path: |
|
||||||
@ -540,9 +540,9 @@ jobs:
|
|||||||
retention-days: 7
|
retention-days: 7
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_emu_fido2 || true
|
- run: mv core/src/.coverage core/.coverage.test_emu_fido2 || true
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
path: core/.coverage.*
|
path: core/.coverage.*
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
@ -569,14 +569,14 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: core-coverage-${{ matrix.model }}-*
|
pattern: core-coverage-${{ matrix.model }}-*
|
||||||
path: core
|
path: core
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "poetry run make -C core coverage"
|
- run: nix-shell --run "poetry run make -C core coverage"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-coverage-report-${{ matrix.model }}
|
name: core-coverage-report-${{ matrix.model }}
|
||||||
path: core/htmlcov
|
path: core/htmlcov
|
||||||
@ -591,7 +591,7 @@ jobs:
|
|||||||
- core_device_test
|
- core_device_test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: ui-records-*
|
pattern: ui-records-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
12
.github/workflows/legacy.yml
vendored
12
.github/workflows/legacy.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
- run: nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
- run: nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
|
||||||
- run: nix-shell --run "poetry run make -C legacy/demo"
|
- run: nix-shell --run "poetry run make -C legacy/demo"
|
||||||
if: matrix.coins == 'universal' && matrix.type == 'normal'
|
if: matrix.coins == 'universal' && matrix.type == 'normal'
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: legacy-firmware-${{ matrix.coins }}-${{ matrix.type }}
|
name: legacy-firmware-${{ matrix.coins }}-${{ matrix.type }}
|
||||||
path: legacy/firmware/firmware-*.bin
|
path: legacy/firmware/firmware-*.bin
|
||||||
@ -61,7 +61,7 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "poetry run legacy/script/cibuild"
|
- run: nix-shell --run "poetry run legacy/script/cibuild"
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: legacy-emu-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
|
name: legacy-emu-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
|
||||||
path: legacy/firmware/*.elf
|
path: legacy/firmware/*.elf
|
||||||
@ -82,7 +82,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: legacy-emu-${{ matrix.coins }}-debuglink-${{ matrix.asan }}
|
name: legacy-emu-${{ matrix.coins }}-debuglink-${{ matrix.asan }}
|
||||||
path: legacy/firmware
|
path: legacy/firmware
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: legacy-emu-universal-debuglink-${{ matrix.asan }}
|
name: legacy-emu-universal-debuglink-${{ matrix.asan }}
|
||||||
path: legacy/firmware
|
path: legacy/firmware
|
||||||
@ -133,7 +133,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: legacy-emu-universal-debuglink-noasan
|
name: legacy-emu-universal-debuglink-noasan
|
||||||
path: legacy/firmware
|
path: legacy/firmware
|
||||||
@ -150,7 +150,7 @@ jobs:
|
|||||||
- legacy_device_test
|
- legacy_device_test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
pattern: ui-records-*
|
pattern: ui-records-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
Loading…
Reference in New Issue
Block a user