mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 17:31:31 +03:00
29 lines
709 B
YAML
29 lines
709 B
YAML
name: 'Rust setup'
|
|
description: 'Rust setup, including cache configuration'
|
|
inputs:
|
|
components:
|
|
description: 'Cargo components'
|
|
required: false
|
|
targets:
|
|
description: 'Cargo target'
|
|
required: false
|
|
toolchain:
|
|
description: 'Rustup toolchain'
|
|
required: false
|
|
default: 'stable'
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: ${{ inputs.toolchain }}
|
|
targets: ${{ inputs.targets }}
|
|
components: ${{ inputs.components }}
|
|
- name: Add Targets
|
|
if: ${{ inputs.targets }}
|
|
run: rustup target add ${{ inputs.targets }}
|
|
shell: bash
|
|
- uses: Swatinem/rust-cache@v2
|