1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-21 04:41:18 +00:00

ci: conditionally use cached-nix-shell in env setup

This commit is contained in:
matejcik 2023-02-10 16:25:25 +01:00 committed by matejcik
parent e4661e8f05
commit 9d7342e0aa

View File

@ -29,6 +29,7 @@ stages:
before_script:
- . /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || true
- which cached-nix-shell > /dev/null || alias cached-nix-shell=nix-shell
- cached-nix-shell --run "poetry install --remove-untracked"
- export LEGACY_VERSION=$(cached-nix-shell --run "./tools/version.sh legacy/firmware/version.h")
- export CORE_VERSION=$(cached-nix-shell --run "./tools/version.sh core/embed/firmware/version.h")