From a4220c4b78c48c311ee599e73ff8c6d5ea8710f0 Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 19 Feb 2025 13:52:08 +0100 Subject: [PATCH] ci: check that `cargo build` can succeed without envvars this ensures that rust-analyzer continues to work --- .github/workflows/core.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index b1c565f5fa..fb8df9f3c3 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -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"