File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,6 +325,13 @@ jobs:
325325 name : Cargo build
326326 command : |
327327 target-env cargo build --target=<< parameters.target >> --workspace
328+ - run :
329+ # this runs diff twice, once to report the changes so that it's easier to see the changed file in circleci
330+ # if it is dirty build should fail with exit 1
331+ name : check build is dirty
332+ command : |
333+ git diff
334+ git diff --quiet || exit 1
328335 - when :
329336 # this defaults to false, but can set it by triggering a pipeline (see above)
330337 condition : << pipeline.parameters.persist_debug >>
@@ -420,6 +427,13 @@ jobs:
420427 # re-sign after install_name_tool since osxcross won't do it
421428 echo "Running: /usr/local/bin/rcodesign sign '${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3'"
422429 /usr/local/bin/rcodesign sign "${PWD}/target/<< parameters.target >>/<< parameters.profile >>/influxdb3"
430+ - run :
431+ # this runs diff twice, once to report the changes so that it's easier to see the changed file in circleci
432+ # if it is dirty build should fail with exit 1
433+ name : check build is dirty
434+ command : |
435+ git diff
436+ git diff --quiet || exit 1
423437 - run :
424438 name : tar build artifacts
425439 command : |
You can’t perform that action at this time.
0 commit comments