mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05:17 +00:00
e7011b4657
* use common actoin to setup rust with cargo cache enabled * hotfix for actions syntax * hotfix actions syntax * fix wrong action path * aaa * bbb * ccc * ddd
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 |