Skip to content

Commit

Permalink
build: add check that generated code is committed
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Feb 1, 2024
1 parent 60184ee commit 4b47b8a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,25 @@ build_%:

check:
cargo hack check --each-feature

check_no_std:
cargo --version
cargo check --target thumbv7em-none-eabihf -p ockam --no-default-features --features 'no_std alloc software_vault'
# no_std example project
cd examples/rust/example_projects/no_std
cargo check --example hello

check_cargo_update:
cargo --version
# TODO: uncomment when tauri version is updated
# rm -rf Cargo.lock
# cargo update
# cargo check

# no uncommitted changes on sdk (generated code)
check_no_uncommitted_changes_on_sdk:
git diff --exit-code cdevents-sdk

lint: lint_cargo_fmt_check lint_cargo_deny lint_cargo_clippy

lint_cargo_fmt_check:
Expand Down Expand Up @@ -59,6 +65,7 @@ test:

.PHONY:
generate \
check test \
check check_no_uncommitted_changes_on_sdk \
test \
lint lint_cargo_fmt_check lint_cargo_deny lint_cargo_clippy lint_cargo_toml_files lint_cargo_readme lint_cargo_readme_% lint_cargo_toml_files \
clean clean_% very_clean format

0 comments on commit 4b47b8a

Please sign in to comment.