taiki-e / upload-rust-binary-action

GitHub Action for building and uploading Rust binary to GitHub Releases.
Apache License 2.0
235 stars 20 forks source link

Action fails if Github CLI not installed #26

Closed andrewthetechie closed 2 years ago

andrewthetechie commented 2 years ago
/opt/gha-runner/_work/_actions/taiki-e/upload-rust-binary-action/v1/main.sh: line 264: gh: command not found
Error: Command failed: bash --noprofile --norc /opt/gha-runner/_work/_actions/taiki-e/upload-rust-binary-action/v1/main.sh

Found this when running on my self-hosted runners on ubuntu-20.04.

taiki-e commented 2 years ago

Thanks for the report. I've added a compatibility note to readme: https://github.com/taiki-e/upload-rust-binary-action#compatibility

This action has been tested for action runners hosted by GitHub. To use this action in self-hosted runners or in containers, you will need to install at least the following:

  • rustup, cargo, rustc
  • bash, GNU Coreutils
  • gh (GitHub CLI)
  • tar, zip (only Unix-like)
  • 7z (only Windows)
  • brew (only macOS)