Skip to content

Commit e03de68

Browse files
fontivanopenshift-cherrypick-robot
authored andcommitted
Add rust-compile target that depends on the submodules being synced - Ensure the code can compile with its up to date submodules as part of git ci
1 parent 0e52d55 commit e03de68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ konflux-all: konflux-filter-unused-redhat-repos konflux-update-tekton-task-refs
100100

101101
# Rust build targets
102102

103+
.PHONY: rust-compile
104+
rust-compile: sync-git-submodules rust-deps ## Compile the Rust code
105+
@echo "Compiling Rust code..."
106+
cargo build --release --bin recert
107+
@echo "Compilation completed successfully."
108+
103109
.PHONY: rust-deps
104110
rust-deps: ## Install Rust build dependencies (protobuf-compiler, rustfmt, rust, clippy)
105111
@echo "Installing Rust build dependencies..."
@@ -131,7 +137,7 @@ rust-test: ## Run Rust tests
131137
@echo "Tests completed successfully."
132138

133139
.PHONY: rust-ci
134-
rust-ci: rust-deps rust-fmt rust-check rust-clippy rust-test ## Run all Rust CI checks (used for Github actions workflow)
140+
rust-ci: rust-deps rust-fmt rust-check rust-clippy rust-test rust-compile ## Run all Rust CI checks (used for Github actions workflow)
135141
@echo "All Rust CI checks completed successfully."
136142

137143
.PHONY: help

0 commit comments

Comments
 (0)