1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-24 03:55:44 +00:00

ci: check that cargo build can succeed without envvars

this ensures that rust-analyzer continues to work
This commit is contained in:
matejcik 2025-02-19 13:52:08 +01:00 committed by matejcik
parent 609e14264f
commit a4220c4b78

View File

@ -220,6 +220,10 @@ jobs:
submodules: recursive
- uses: ./.github/actions/environment
- run: nix-shell --run "poetry run make -C core build_unix_frozen"
# Ensure that "cargo build" works when NOT executed through our makefiles,
# indicating that it does not rely on particular envvars or other flags.
# This makes sure that rust-analyzer will work on our codebase.0
- run: nix-shell --run "cd core/embed/rust && cargo build"
- run: nix-shell --run "poetry run make -C core clippy"
- run: nix-shell --run "poetry run make -C core test_rust"