mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Lints are added (deny) at crate level. In each offending file, the failing lints are explicitly allowed. Each file will be fixed in subsequent PRs. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
30 lines
804 B
YAML
30 lines
804 B
YAML
name: rust-toolchain
|
|
description: Setup Rust toolchain with specified version and components
|
|
inputs:
|
|
toolchain:
|
|
description: 'Rust toolchain version'
|
|
required: false
|
|
default: '1.92.0'
|
|
components:
|
|
description: 'Additional components to install'
|
|
required: false
|
|
default: 'clippy rustfmt'
|
|
targets:
|
|
description: 'Target architectures to install'
|
|
required: false
|
|
default: ''
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
rustup override set ${{ inputs.toolchain }}
|
|
if [ -n "${{ inputs.components }}" ]; then
|
|
rustup component add ${{ inputs.components }}
|
|
fi
|
|
if [ -n "${{ inputs.targets }}" ]; then
|
|
rustup target add ${{ inputs.targets }}
|
|
fi
|
|
cargo --version
|
|
rustc --version
|