setup-rust/action.yml
2023-04-17 15:20:40 -07:00

35 lines
1.1 KiB
YAML

name: 'Setup Rust and Cargo'
author: 'Miles Johnson'
description:
'Sets up Rust by installing a toolchain/components/targets with rustup, and also Cargo by
installing bins and caching core.'
inputs:
bins:
description: 'Comma-separated list of global binaries to install into Cargo.'
cache:
description: 'Toggle caching of ~/.cargo/registry and /target/debug directories.'
default: true
channel:
description: 'Toolchain specification/channel to install.'
components:
description: 'Comma-separated list of additional components to install.'
targets:
description: 'Comma-separated list of additional targets to install.'
profile:
description: 'Profile to install. Defaults to "minimal".'
outputs:
cache-key:
description: 'The generated cache key used.'
cache-hit:
description: 'Indicates an exact match was found for the cache key.'
rust-version:
description: 'Version of the installed rustc.'
rust-hash:
description: 'Commit hash of the installed rustc.'
runs:
using: 'node16'
main: 'dist/index.js'
post: 'dist/post/index.js'
branding:
icon: 'settings'
color: 'orange'