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