From b3465736170f0585e64012f349bebeed13e706b8 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Thu, 28 Nov 2024 14:53:35 +0100 Subject: [PATCH] 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 --- playbooks/rust/all.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/rust/all.yaml b/playbooks/rust/all.yaml index 79a0d01..a1bc837 100644 --- a/playbooks/rust/all.yaml +++ b/playbooks/rust/all.yaml @@ -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"