From bd7d49ba2f854a2f1c1b65926ff600b30250c6d5 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 8 Oct 2023 09:58:00 -0700 Subject: [PATCH] Add input for selecting a Rust toolchain --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0226d48..6c5cda9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,10 @@ on: path: required: false type: string + toolchain: + required: false + type: string + default: stable secrets: private_key: required: true @@ -37,7 +41,9 @@ jobs: ref: ${{inputs.ref}} path: ${{inputs.crate}} if: inputs.git - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{inputs.toolchain}} - run: cargo install --force ${{inputs.git && format('--path={0}', inputs.path || '.') || inputs.crate}} --bin ${{inputs.bin || inputs.crate}} working-directory: ${{inputs.git && inputs.crate || '.'}} - id: which