From 4e58da8c9baa27e34213f6f686fd5c3e3ab276e6 Mon Sep 17 00:00:00 2001 From: Francisco Javier Honduvilla Coto Date: Mon, 20 Jan 2025 10:00:08 +0000 Subject: [PATCH] ci: Run cargo check instead of build As it's faster and a full build isn't really needed, we just want to make sure that the code can compile. No need to produce an executable. --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eb7c72f..54a753c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,8 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@main - name: Set up nix dev env run: nix develop --command echo 0 - - name: Run `cargo build` - run: nix develop --ignore-environment --command cargo build + - name: Run `cargo check` + run: nix develop --ignore-environment --command cargo check - name: Run `cargo clippy` run: nix develop --command cargo clippy --workspace --all-targets -- -D warnings - name: Run `cargo test`