Only compile generated rust code

We should not try to compile the code that is not being generated. This
helps preventing breaking changes but at the same time slows down
propagation of the real API changes. Downstream tools (i.e.
openstack_tui) need to be adapted in the PR propagating the sdk change
until we start generating tui code as well.
Change-Id: I3f583deb9b3c310a9b05371e583ba570f80bbb77
This commit is contained in:
Artem Goncharov
2024年11月28日 14:53:35 +01:00
parent cadf4f8652
commit b346573617

View File

@@ -21,7 +21,7 @@
- name:"Pre-Compile current code to ensure it builds"
ansible.builtin.command:
cmd:"cargo build"
cmd:"cargo build -p openstack_sdk -p openstack_cli"
chdir:"{{ rust_project_dir }}"
- name:"Overwrite generated files"
@@ -35,9 +35,9 @@
cmd:"cargo clippy --fix --lib --tests --allow-dirty"
chdir:"{{ rust_project_dir }}"
- name:"Compile new code"
- name:"Compile new code (only generated crates)"
ansible.builtin.command:
cmd:"cargo build"
cmd:"cargo build -p openstack_sdk -p openstack_cli"
chdir:"{{ rust_project_dir }}"
- name:"Checkout new branch"
Reference in New Issue
openstack/codegenerator
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.