Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
781 B
27 lines
781 B
name: 'Setup Rust'
|
|
description: 'Setup Rust using Rustup'
|
|
inputs:
|
|
version:
|
|
description: 'Rust version to use. By default latest stable version'
|
|
required: false
|
|
default: 'stable'
|
|
component:
|
|
description: 'Rust extra component to install like clippy'
|
|
required: false
|
|
target:
|
|
description: 'Rust extra target to install like wasm32-unknown-unknown'
|
|
required: false
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- run: rustup update
|
|
shell: bash
|
|
- run: rustup default ${{ inputs.version }}
|
|
shell: bash
|
|
- run: rustup component add ${{ inputs.component }}
|
|
shell: bash
|
|
if: ${{ inputs.component }}
|
|
- run: rustup target add ${{ inputs.target }}
|
|
shell: bash
|
|
if: ${{ inputs.target }}
|
|
- uses: Swatinem/rust-cache@v2
|
|
|