forked from metaplex-foundation/metaplex-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (32 loc) · 900 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Install Rust
inputs:
toolchain:
description: The Rust version to use, default env.RUST_TOOLCHAIN
required: true
runs:
using: "composite"
steps:
- name: Install Rust Stable
id: rust_toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ inputs.toolchain }}
override: true
profile: minimal
components: rustfmt, clippy
- name: Add Cargo bin to Path
run: |
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
shell: bash
- name: Verify Rust install
run: |
echo "Verifying rust '${{ inputs.toolchain }}' ..."
rustc --version
cargo --version
cargo clippy --version
rustfmt --version
shell: bash
- name: Share rustc hash
run: |
echo 'RUSTC_HASH=${{ steps.rust_toolchain.outputs.rustc_hash }}' >> $GITHUB_ENV
shell: bash