GH actions worker-build not found

Getting the following error in my GH action:

/bin/sh: 1: worker-build: not found

from this line:
cargo install -q --git https://github.com/cloudflare/workers-rs && worker-build

I've tried running a cargo install worker-build before the worker-build command as well. but that didn't work either.
Was this page helpful?