parent
cf359d3bd4
commit
da83129d65
1 changed files with 19 additions and 6 deletions
|
@ -16,15 +16,28 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Cargo
|
- name: Install Cargo via Ubuntu package
|
||||||
uses: actions-rs/toolchain@v1
|
run: sudo apt-get install -y cargo
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Cache dependencies (restore)
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
target
|
||||||
|
~/.cargo
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- name: Update dependencies
|
||||||
run: cargo fetch
|
run: cargo fetch
|
||||||
|
|
||||||
|
- name: Cache dependencies (save)
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
target
|
||||||
|
~/.cargo
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt --check
|
run: cargo fmt --check
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue