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

Support rust 2021 edition (cargo 1.56) #10

Closed joepio closed 2 years ago

joepio commented 2 years ago

Hi! Thanks for maintaining this useful action.

My rust edition 2021 build is failing, I think because this is using cargo 1.55 instead of the newer 1.56.

taiki-e commented 2 years ago

This is due to the Rust installed in the GitHub action by default being outdated, not a problem of this action.

You can always use the latest stable Rust by adding the following step.

      steps:
        - uses: actions/checkout@v2
+       - run: rustup update stable
        - uses: taiki-e/upload-rust-binary-action@v1

It is intentional behavior that this action uses the default toolchain and does not automatically adjust the Rust version. This allows users to choose an arbitrary version of the compiler freely.