From 42a1f464055e36b17d46ba5b7aa85a5e544f2c67 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sun, 19 Mar 2023 11:03:05 -0400 Subject: [PATCH] Add support for specifying which toolchain to use --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index ee33d1c..f8c12c0 100644 --- a/action.yml +++ b/action.yml @@ -13,6 +13,10 @@ inputs: target: description: The target platform required: true + toolchain: + description: | + The target toolchain to use (one of "stable", "beta", or "nightly"). + default: stable GITHUB_TOKEN: description: | A GitHub token, available in the secrets.GITHUB_TOKEN context variable. @@ -39,6 +43,7 @@ runs: uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.platform.target }} + toolchain: ${{ inputs.toolchain }} if: ${{ steps.determine-cross-compile.outputs.needs-cross == 'false' }} - name: Install cross if cross-compiling (*nix) shell: bash