Skip to content

Commit f58ee3b

Browse files
committed
fix(ci): install rustfmt component and build images from source
- Add `rustup component add rustfmt clippy` to CI workflow since mise installs the Rust toolchain without these components - Add BUILD_FROM_SOURCE=1 to publish workflow since the Dockerfile expects prebuilt binaries that our workflow doesn't produce Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Paolo Dettori <dettori@us.ibm.com>
1 parent 9793485 commit f58ee3b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/kagenti-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323

2424
- uses: jdx/mise-action@v2
2525

26+
- name: Install Rust components
27+
run: rustup component add rustfmt clippy
28+
2629
- name: Cache Rust target and registry
2730
uses: Swatinem/rust-cache@v2
2831
with:

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
target: gateway
7878
push: true
7979
platforms: linux/amd64,linux/arm64
80+
build-args: BUILD_FROM_SOURCE=1
8081
tags: ${{ steps.meta_retry.outputs.tags || steps.meta.outputs.tags }}
8182
labels: ${{ steps.meta_retry.outputs.labels || steps.meta.outputs.labels }}
8283
cache-from: type=gha,scope=gateway
@@ -143,6 +144,7 @@ jobs:
143144
target: supervisor
144145
push: true
145146
platforms: linux/amd64,linux/arm64
147+
build-args: BUILD_FROM_SOURCE=1
146148
tags: ${{ steps.meta_retry.outputs.tags || steps.meta.outputs.tags }}
147149
labels: ${{ steps.meta_retry.outputs.labels || steps.meta.outputs.labels }}
148150
cache-from: type=gha,scope=supervisor

0 commit comments

Comments
 (0)