mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
ci: set core/legacy version in .gitlab.yml
This commit is contained in:
parent
040b4a1ee7
commit
e6889245e8
@ -35,6 +35,8 @@ stages:
|
|||||||
before_script:
|
before_script:
|
||||||
- . $HOME/.nix-profile/etc/profile.d/nix.sh || true
|
- . $HOME/.nix-profile/etc/profile.d/nix.sh || true
|
||||||
- nix-shell --run "pipenv sync"
|
- nix-shell --run "pipenv sync"
|
||||||
|
- 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")
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- ci/environment.yml
|
- ci/environment.yml
|
||||||
|
22
ci/build.yml
22
ci/build.yml
@ -15,8 +15,7 @@ core fw regular build:
|
|||||||
- nix-shell --run "pipenv run make -C core build_prodtest"
|
- nix-shell --run "pipenv run make -C core build_prodtest"
|
||||||
- nix-shell --run "pipenv run make -C core build_firmware"
|
- nix-shell --run "pipenv run make -C core build_firmware"
|
||||||
- nix-shell --run "pipenv run make -C core sizecheck"
|
- nix-shell --run "pipenv run make -C core sizecheck"
|
||||||
- export VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
|
- cp core/build/firmware/firmware.bin trezor-fw-regular-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
- cp core/build/firmware/firmware.bin trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -27,8 +26,7 @@ core fw regular debug build:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "PYOPT=0 pipenv run make -C core build_firmware"
|
- nix-shell --run "PYOPT=0 pipenv run make -C core build_firmware"
|
||||||
- export VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
|
- cp core/build/firmware/firmware.bin trezor-fw-regular-debug-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
- cp core/build/firmware/firmware.bin trezor-fw-regular-debug-$VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -43,8 +41,7 @@ core fw btconly build:
|
|||||||
- nix-shell --run "pipenv run make -C core build_firmware"
|
- nix-shell --run "pipenv run make -C core build_firmware"
|
||||||
- mv core/build/firmware/firmware.bin core/build/firmware/firmware-bitcoinonly.bin
|
- mv core/build/firmware/firmware.bin core/build/firmware/firmware-bitcoinonly.bin
|
||||||
- nix-shell --run "pipenv run ./tools/check-bitcoin-only core/build/firmware/firmware-bitcoinonly.bin"
|
- nix-shell --run "pipenv run ./tools/check-bitcoin-only core/build/firmware/firmware-bitcoinonly.bin"
|
||||||
- export VERSION=$(nix-shell --run "./tools/version.sh core/embed/firmware/version.h")
|
- cp core/build/firmware/firmware-bitcoinonly.bin trezor-fw-btconly-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
- cp core/build/firmware/firmware-bitcoinonly.bin trezor-fw-btconly-$VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -107,12 +104,12 @@ core unix frozen regular darwin:
|
|||||||
- mkdir -p TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/{MacOS,libs}
|
- mkdir -p TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/{MacOS,libs}
|
||||||
- cp -v core/build/unix/micropython TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
- cp -v core/build/unix/micropython TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
||||||
- dylibbundler -of -b -i /usr/lib/system -d TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/libs -x TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
- dylibbundler -of -b -i /usr/lib/system -d TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/libs -x TrezorEmu-$CI_COMMIT_SHORT_SHA.app/Contents/MacOS/TrezorEmu-$CI_COMMIT_SHORT_SHA
|
||||||
- mv TrezorEmu-$CI_COMMIT_SHORT_SHA.app trezor-emu-regular-macos-$VERSION-$CI_COMMIT_SHORT_SHA.app
|
- mv TrezorEmu-$CI_COMMIT_SHORT_SHA.app trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
- trezor-emu-regular-macos-$VERSION-$CI_COMMIT_SHORT_SHA.app
|
- trezor-emu-regular-macos-$CORE_VERSION-$CI_COMMIT_SHORT_SHA.app
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
# Crypto
|
# Crypto
|
||||||
@ -144,8 +141,7 @@ legacy fw regular build:
|
|||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run legacy/script/cibuild"
|
- nix-shell --run "pipenv run legacy/script/cibuild"
|
||||||
- nix-shell --run "pipenv run make -C legacy/demo"
|
- nix-shell --run "pipenv run make -C legacy/demo"
|
||||||
- export VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
|
- mv legacy/firmware/trezor.bin trezor-fw-regular-$LEGACY_VERSION-$CI_COMMIT_SHORT_SHA.bin
|
||||||
- mv legacy/firmware/trezor.bin trezor-fw-regular-$VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -159,8 +155,7 @@ legacy fw debug build:
|
|||||||
MEMORY_PROTECT: "0"
|
MEMORY_PROTECT: "0"
|
||||||
script:
|
script:
|
||||||
- nix-shell --run "pipenv run legacy/script/cibuild"
|
- nix-shell --run "pipenv run legacy/script/cibuild"
|
||||||
- export VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
|
- 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-$VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
@ -176,8 +171,7 @@ legacy fw btconly build:
|
|||||||
- nix-shell --run "pipenv run legacy/script/cibuild"
|
- nix-shell --run "pipenv 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 "pipenv run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin"
|
- nix-shell --run "pipenv run ./tools/check-bitcoin-only legacy/firmware/trezor-bitcoinonly.bin"
|
||||||
- export VERSION=$(nix-shell --run "./tools/version.sh legacy/firmware/version.h")
|
- 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-$VERSION-$CI_COMMIT_SHORT_SHA.bin
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
paths:
|
paths:
|
||||||
|
Loading…
Reference in New Issue
Block a user