mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
ci: add arm build for core unix and legacy emulators
This commit is contained in:
parent
3ab036a1d1
commit
0024d72340
@ -28,7 +28,7 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- . $HOME/.nix-profile/etc/profile.d/nix.sh || true
|
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||||
- nix-shell --run "poetry install"
|
- nix-shell --run "poetry install"
|
||||||
- export LEGACY_VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
|
- export LEGACY_VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
|
||||||
- export CORE_VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
|
- export CORE_VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
|
||||||
|
48
ci/build.yml
48
ci/build.yml
@ -153,6 +153,27 @@ core unix frozen debug build:
|
|||||||
untracked: true
|
untracked: true
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
core unix frozen debug build arm:
|
||||||
|
image: vdovhanych/nixos
|
||||||
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
|
needs: []
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- /^release\//
|
||||||
|
- /^secfix\//
|
||||||
|
variables:
|
||||||
|
PYOPT: "0"
|
||||||
|
script:
|
||||||
|
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
||||||
|
- mv core/build/unix/trezor-emu-core core/build/unix/trezor-emu-core-arm
|
||||||
|
artifacts:
|
||||||
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
|
untracked: true
|
||||||
|
expire_in: 1 week
|
||||||
|
tags:
|
||||||
|
- docker_darwin_arm
|
||||||
|
|
||||||
core unix frozen btconly debug t1 build:
|
core unix frozen btconly debug t1 build:
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
@ -174,9 +195,9 @@ core macos frozen regular build:
|
|||||||
needs: []
|
needs: []
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
tags:
|
||||||
- darwin
|
- darwin_arm
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run make -C core build_unix_frozen"
|
- nix-shell --option system x86_64-darwin --run "poetry run make -C core build_unix_frozen"
|
||||||
- export NAME="trezor-emu-core.darwin"
|
- export NAME="trezor-emu-core.darwin"
|
||||||
- cp -v core/build/unix/trezor-emu-core ./$NAME
|
- cp -v core/build/unix/trezor-emu-core ./$NAME
|
||||||
- chmod +x $NAME
|
- chmod +x $NAME
|
||||||
@ -301,6 +322,29 @@ legacy emu regular debug build:
|
|||||||
- legacy/firmware/trezor.elf
|
- legacy/firmware/trezor.elf
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
legacy emu regular debug build arm:
|
||||||
|
image: vdovhanych/nixos
|
||||||
|
stage: build
|
||||||
|
<<: *gitlab_caching
|
||||||
|
needs: []
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- /^release\//
|
||||||
|
- /^secfix\//
|
||||||
|
variables:
|
||||||
|
DEBUG_LINK: "1"
|
||||||
|
EMULATOR: "1"
|
||||||
|
script:
|
||||||
|
- nix-shell --run "poetry run legacy/script/cibuild"
|
||||||
|
- mv legacy/firmware/trezor.elf legacy/firmware/trezor-arm.elf
|
||||||
|
artifacts:
|
||||||
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
|
paths:
|
||||||
|
- legacy/firmware/trezor-arm.elf
|
||||||
|
expire_in: 1 week
|
||||||
|
tags:
|
||||||
|
- docker_darwin_arm
|
||||||
|
|
||||||
legacy emu btconly debug build:
|
legacy emu btconly debug build:
|
||||||
stage: build
|
stage: build
|
||||||
<<: *gitlab_caching
|
<<: *gitlab_caching
|
||||||
|
Loading…
Reference in New Issue
Block a user