stratis-storage / ci

To manage CI for various project repos.
0 stars 6 forks source link

For create_release.py we should require a cargo-package step as a check at the start for every Rust package #384

Closed mulkieran closed 1 year ago

mulkieran commented 1 year ago

This way we verify that it is publishable.

We can do it in the _tag_rust_library() method, right after get_package_info is invoked. get_package_info() verifies that the script is being run in the correct directory.

We can just use the cargo-package command-line call, and we should definitely clean up after "cargo-package" runs. If the packaging step fails, the script should stop.