Skip to content

Commit b57a20e

Browse files
committed
ci: add arm emulator build in github actions
1 parent a15dd65 commit b57a20e

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

.github/workflows/core.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,45 @@ jobs:
126126
core/build/bootloader_emu/bootloader.elf
127127
retention-days: 7
128128

129+
core_emu_arm:
130+
# Disabled for testing purposes
131+
# if: github.event_name == 'schedule'
132+
name: Build emu arm
133+
runs-on: ubuntu-latest-arm64
134+
needs: param
135+
strategy:
136+
fail-fast: false
137+
matrix:
138+
model: [T2T1, T2B1, T3T1]
139+
coins: [universal]
140+
type: [debuglink]
141+
asan: [noasan]
142+
exclude:
143+
- type: normal
144+
asan: asan
145+
env:
146+
TREZOR_MODEL: ${{ matrix.model == 'T2T1' && 'T' || matrix.model == 'T2B1' && 'R' || matrix.model }}
147+
BITCOIN_ONLY: ${{ matrix.coins == 'universal' && '0' || '1' }}
148+
PYOPT: ${{ matrix.type == 'debuglink' && '0' || '1' }}
149+
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
150+
LSAN_OPTIONS: "suppressions=../../asan_suppressions.txt"
151+
steps:
152+
- uses: actions/checkout@v4
153+
with:
154+
submodules: recursive
155+
- uses: ./.github/actions/environment
156+
- run: nix-shell --run "poetry run make -C core build_bootloader_emu"
157+
if: matrix.coins == 'universal'
158+
- run: nix-shell --run "poetry run make -C core build_unix_frozen"
159+
- run: cp core/build/unix/trezor-emu-core core/build/unix/trezor-emu-arm-core-${{ matrix.model }}-${{ matrix.coins }}
160+
- uses: actions/upload-artifact@v4
161+
with:
162+
name: core-emu-arm-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.type }}-${{ matrix.asan }}
163+
path: |
164+
core/build/unix/trezor-emu-core*
165+
core/build/bootloader_emu/bootloader.elf
166+
retention-days: 2
167+
129168
core_unit_python_test:
130169
name: Python unit tests
131170
runs-on: ubuntu-latest
@@ -708,7 +747,9 @@ jobs:
708747
name: Upload emulator binaries
709748
if: github.event_name == 'schedule'
710749
runs-on: ubuntu-latest
711-
needs: core_emu
750+
needs:
751+
- core_emu
752+
- core_emu_arm
712753
steps:
713754
- uses: actions/download-artifact@v4
714755
with:

0 commit comments

Comments
 (0)