taiki-e/upload-rust-binary-action

Support rust 2021 edition (cargo 1.56)

joepio opened this issue · 1 comments

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.

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.