mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-09-20 07:27:31 +00:00
21 lines
533 B
YAML
21 lines
533 B
YAML
|
name: Setup Rust (cache & toolchain)
|
||
|
runs:
|
||
|
using: composite
|
||
|
steps:
|
||
|
- name: Cargo cache
|
||
|
uses: actions/cache@v3
|
||
|
with:
|
||
|
path: |
|
||
|
~/.cargo/bin/
|
||
|
~/.cargo/registry/index/
|
||
|
~/.cargo/registry/cache/
|
||
|
~/.cargo/git/db/
|
||
|
target/
|
||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||
|
|
||
|
- name: Install toolchain 1.75.0
|
||
|
uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
profile: minimal
|
||
|
toolchain: 1.75.0
|
||
|
components: rustfmt, clippy
|