fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a3b009dd4
master
1name : Rust Toolchain 2 3inputs : 4toolchain_channel : 5description : Either "stable" or "msrv" 6required : true 7targets : 8description : Comma-separated list of target triples to install for this toolchain 9required : false 10components : 11description : Comma-separated list of components to be additionally installed 12required : false 13 14permissions : 15contents : read 16 17runs : 18using : "composite" 19steps : 20- name : Set toolchain 21env : 22toolchain_channel : ${{ inputs.toolchain_channel }} 23shell : bash 24run : | 25set -x 26toolchain=$( 27case "$toolchain_channel" in 28(stable) echo 1.96 ;; # updatecli.d/rust.yml 29(msrv) echo 1.85 ;; # updatecli.d/rust.yml 30(*) 31printf >&2 "error: unsupported toolchain channel %s" "$toolchain_channel" 32exit 1 33;; 34esac 35) 36printf 'TOOLCHAIN=%s\n' "$toolchain" >>"$GITHUB_ENV" 37- uses : dtolnay/rust-toolchain@master 38with : 39toolchain : ${{ env.TOOLCHAIN }} 40targets : ${{ inputs.targets }} 41components : ${{ inputs.components }}