Skip to content

Commit

Permalink
ci: update action upload-artifact to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
vdovhanych committed Feb 15, 2024
1 parent 9e72988 commit c03d367
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ui-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
aws s3 sync ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
# TODO: generate directory listing / autoindex
shell: sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ui-records
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run: nix-shell --run "poetry run make -C crypto"
- 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
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: crypto-build
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/core-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
nix-shell --run "poetry run pytest -v tests/device_tests"
- run: tail -n50 trezor.log || true
if: failure()
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-hardware-${{ matrix.model }}
path: trezor.log
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
nix-shell --arg fullDeps true --run "cd ../../core/tests && ./run_tests_device_emu_monero.sh $TESTOPTS"
- run: tail -n50 trezor.log || true
if: failure()
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-hardware-${{ matrix.model }}
path: trezor.log
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 sizecheck"
if: matrix.coins == 'universal' && matrix.type != 'debuglink'
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-firmware-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}
path: |
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- run: nix-shell --run "poetry run make -C core build_bootloader_emu"
if: matrix.coins == 'universal'
- run: nix-shell --run "poetry run make -C core build_unix_frozen"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-emu-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
path: |
Expand Down Expand Up @@ -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: tail -n50 tests/trezor.log || true
if: failure()
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-device-${{ matrix.model }}-${{ matrix.asan }}
path: tests/trezor.log
Expand All @@ -209,7 +209,7 @@ jobs:
if: ${{ always() && env.ACTIONS_DO_UI_TEST == 'true' }}
- uses: ./.github/actions/ui-comment
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
# there will be more coverage files (one per core)
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:
if: ${{ matrix.asan == 'noasan' }}
- run: nix-shell --run "poetry run make -C core test_emu_click"
if: ${{ matrix.asan == 'asan' }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-click-${{ matrix.model }}-${{ matrix.asan }}
path: tests/trezor.log
Expand All @@ -255,7 +255,7 @@ jobs:
model: ${{ matrix.model }}
if: always()
- run: mv core/src/.coverage core/.coverage.test_click || true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
path: core/.coverage.*
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
model: ${{ matrix.model }}
if: always()
- run: mv core/src/.coverage core/.coverage.test_persistence || true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
path: core/.coverage.*
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:
- run: nix-shell --run "git clone --depth=1 https://github.com/bitcoin-core/HWI.git"
# 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"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-test-hwi-${{ matrix.model }}
path: HWI/trezor-t-emulator.stdout
Expand All @@ -371,7 +371,7 @@ jobs:
- run: nix-shell --run "poetry run make -C core test_emu"
- 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"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-memperf-${{ matrix.model }}
path: |
Expand Down Expand Up @@ -424,7 +424,7 @@ jobs:
path: core/build
- 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"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-test-flash-size-${{ matrix.model }}
path: firmware_elf_size_report.txt
Expand Down Expand Up @@ -457,7 +457,7 @@ jobs:
# 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 run make -C core test_emu_monero"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-test-monero-${{ matrix.model }}-${{ matrix.asan }}
path: |
Expand All @@ -466,7 +466,7 @@ jobs:
retention-days: 7
if: always()
- run: mv core/src/.coverage core/.coverage.test_emu_monero || true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
path: core/.coverage.*
Expand Down Expand Up @@ -496,14 +496,14 @@ jobs:
- 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 core test_emu_u2f"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-test-u2f-${{ matrix.model }}-${{ matrix.asan }}
path: tests/trezor.log
retention-days: 7
if: always()
- run: mv core/src/.coverage core/.coverage.test_emu_u2f || true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
path: core/.coverage.*
Expand Down Expand Up @@ -532,15 +532,15 @@ jobs:
- run: chmod +x core/build/unix/trezor-emu-core*
- uses: ./.github/actions/environment
- run: nix-shell --run "poetry run make -C core test_emu_fido2"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-test-fido2-${{ matrix.model }}-${{ matrix.asan }}
path: |
tests/trezor.log
retention-days: 7
if: always()
- run: mv core/src/.coverage core/.coverage.test_emu_fido2 || true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
path: core/.coverage.*
Expand Down Expand Up @@ -575,7 +575,7 @@ jobs:
path: core
- uses: ./.github/actions/environment
- run: nix-shell --run "poetry run make -C core coverage"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}
path: core/htmlcov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: nix-shell --run "export PRODUCTION=0 && poetry run legacy/script/cibuild"
- run: nix-shell --run "poetry run make -C legacy/demo"
if: matrix.coins == 'universal' && matrix.type == 'normal'
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: legacy-firmware-${{ matrix.coins }}-${{ matrix.type }}
path: legacy/firmware/firmware-*.bin
Expand All @@ -61,7 +61,7 @@ jobs:
submodules: recursive
- uses: ./.github/actions/environment
- run: nix-shell --run "poetry run legacy/script/cibuild"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: legacy-emu-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
path: legacy/firmware/*.elf
Expand Down

0 comments on commit c03d367

Please sign in to comment.