zed-discord-presence/.github/actions/install-rust/action.yml

21 lines
506 B
YAML
Raw Normal View History

2024-07-19 16:26:21 +02:00
name: Install rust
description: Installs the latest version of rust, rustfmt & clippy
2024-07-19 16:36:28 +02:00
inputs:
targets:
description: Comma-separated list of target triples to install for this toolchain
default: x86_64-unknown-linux-gnu
required: false
2024-07-19 16:26:21 +02:00
runs:
using: composite
steps:
- name: install rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
2024-07-19 16:40:18 +02:00
targets: ${{ inputs.targets }}
2024-07-19 16:26:21 +02:00
- name: cache dependencies
uses: Swatinem/rust-cache@v2