diff --git a/Makefile b/Makefile index 284f218d952c700cdcbacaaa1f325d998d4c6603..63bfc0ef8a24e31cab4f58e7f2634627d0d2e884 100644 --- a/Makefile +++ b/Makefile @@ -79,7 +79,7 @@ vendor: $(VENDOR) version: $(GIT_REVISION) $(GIT_REVISION): - git rev-parse master > git_revision.txt + git rev-parse HEAD > git_revision.txt $(VENDOR): rm -rf .cargo vendor vendor.tar.xz diff --git a/tests/run_examples.sh b/tests/run_examples.sh index b4bbf93a721f6c4d9a4f89a1514ee37636061194..d488b6224579cfd05834ac71b4e01eb5212f3f88 100755 --- a/tests/run_examples.sh +++ b/tests/run_examples.sh @@ -55,7 +55,11 @@ export EXAMPLES_DIR CPU_CORES=$(nproc --all) # Build debug binary -cargo +$TOOLCHAIN build +if [ $RUSTUP -eq 1 ]; then + cargo +$TOOLCHAIN build +else + cargo build +fi test_generic test_params