taiki-e / upload-rust-binary-action

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

5 targets selected but only 3 attachments uploaded #33

Closed kris7ian closed 1 year ago

kris7ian commented 1 year ago

I'm new to rust and cross-compiling in general. I have the following github action (derived from the examples), it has 5 targets: https://github.com/kris7ian/aido-cli/blob/main/.github/workflows/release.yaml The release has only 3 attached binaries though: https://github.com/kris7ian/aido-cli/releases/tag/v0.5.1 This is the corresponding action: https://github.com/kris7ian/aido-cli/actions/runs/3285429111 What am I missing?

taiki-e commented 1 year ago

All links will result in a 404 error...

kris7ian commented 1 year ago

Ohh the repository was set to private, I have made it public. Links should work now. Sorry about that.

taiki-e commented 1 year ago

Thanks. It seems the problem is that the target input option is not passed. You need to pass target: ${{ matrix.target }} like readme's cross-compilation example.

kris7ian commented 1 year ago

Ahh thank you very much!