mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
ci: also build legacy firmware with MEMORY_PROTECT=1 (#1935)
This commit is contained in:
parent
219e08d81e
commit
909b7b355d
21
ci/build.yml
21
ci/build.yml
@ -185,10 +185,10 @@ crypto build:
|
|||||||
legacy fw regular build:
|
legacy fw regular build:
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
variables:
|
|
||||||
MEMORY_PROTECT: "0"
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run legacy/script/cibuild"
|
- nix-shell --run "export MEMORY_PROTECT=1 && poetry run legacy/script/cibuild"
|
||||||
|
- nix-shell --run "poetry run legacy/script/setup"
|
||||||
|
- nix-shell --run "export MEMORY_PROTECT=0 && poetry run legacy/script/cibuild"
|
||||||
- nix-shell --run "poetry run make -C legacy/demo"
|
- nix-shell --run "poetry run make -C legacy/demo"
|
||||||
- mv legacy/firmware/trezor.bin trezor-fw-regular-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
- mv legacy/firmware/trezor.bin trezor-fw-regular-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -202,9 +202,10 @@ legacy fw regular debug build:
|
|||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
MEMORY_PROTECT: "0"
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run legacy/script/cibuild"
|
- nix-shell --run "export MEMORY_PROTECT=1 && poetry run legacy/script/cibuild"
|
||||||
|
- nix-shell --run "poetry run legacy/script/setup"
|
||||||
|
- nix-shell --run "export MEMORY_PROTECT=0 && poetry run legacy/script/cibuild"
|
||||||
- mv legacy/firmware/trezor.bin trezor-fw-regular-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
- mv legacy/firmware/trezor.bin trezor-fw-regular-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
@ -217,9 +218,10 @@ legacy fw btconly build:
|
|||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
MEMORY_PROTECT: "0"
|
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run legacy/script/cibuild"
|
- nix-shell --run "export MEMORY_PROTECT=1 && poetry run legacy/script/cibuild"
|
||||||
|
- nix-shell --run "poetry run legacy/script/setup"
|
||||||
|
- nix-shell --run "export MEMORY_PROTECT=0 && poetry run legacy/script/cibuild"
|
||||||
- mv legacy/firmware/trezor.bin legacy/firmware/trezor-bitcoinonly.bin
|
- mv legacy/firmware/trezor.bin legacy/firmware/trezor-bitcoinonly.bin
|
||||||
- nix-shell --run "poetry run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin"
|
- nix-shell --run "poetry run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin"
|
||||||
- mv legacy/firmware/trezor-bitcoinonly.bin trezor-fw-btconly-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
- mv legacy/firmware/trezor-bitcoinonly.bin trezor-fw-btconly-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
@ -234,10 +236,11 @@ legacy fw btconly debug build:
|
|||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
BITCOIN_ONLY: "1"
|
BITCOIN_ONLY: "1"
|
||||||
MEMORY_PROTECT: "0"
|
|
||||||
DEBUG_LINK: "1"
|
DEBUG_LINK: "1"
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "poetry run legacy/script/cibuild"
|
- nix-shell --run "export MEMORY_PROTECT=1 && poetry run legacy/script/cibuild"
|
||||||
|
- nix-shell --run "poetry run legacy/script/setup"
|
||||||
|
- nix-shell --run "export MEMORY_PROTECT=0 && poetry run legacy/script/cibuild"
|
||||||
- nix-shell --run "poetry run ./tools/check-bitcoin-only legacy/firmware/trezor.bin"
|
- nix-shell --run "poetry run ./tools/check-bitcoin-only legacy/firmware/trezor.bin"
|
||||||
- mv legacy/firmware/trezor.bin trezor-fw-btconly-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
- mv legacy/firmware/trezor.bin trezor-fw-btconly-debug-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
artifacts:
|
artifacts:
|
||||||
|
Loading…
Reference in New Issue
Block a user