rust worker deployment issu eusing github ci cd

i have very simple rust worker , ican deploy it using wrangler deploy, but how to do so using github ci cd?

here is my toml

name = "testing-rs"
main = "build/worker/shim.mjs"
compatibility_date = "2025-11-22"

[build]
command = "cargo install -q worker-build && worker-build --release"



cloudflare logs


[ERROR] Error: Command failed with exit code 127: cargo install -q worker-build && worker-build --release

/bin/sh: 1: cargo: not found
Was this page helpful?