Skip to content

Commit

Permalink
ci: Run cargo check instead of build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
javierhonduco committed Jan 20, 2025
1 parent 7eef055 commit 4e58da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 4e58da8

Please sign in to comment.