chore: Add rust cache for CI (#961)
This commit is contained in:
@@ -26,6 +26,7 @@ jobs:
|
|||||||
run: rustup component add rustfmt
|
run: rustup component add rustfmt
|
||||||
- name: Install cargo-hack
|
- name: Install cargo-hack
|
||||||
run: cargo install cargo-hack
|
run: cargo install cargo-hack
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Check fmt
|
- name: Check fmt
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
- name: Check features
|
- name: Check features
|
||||||
@@ -58,6 +59,7 @@ jobs:
|
|||||||
rust-version: ${{ matrix.rust }}
|
rust-version: ${{ matrix.rust }}
|
||||||
- name: Install rustfmt
|
- name: Install rustfmt
|
||||||
run: rustup component add rustfmt
|
run: rustup component add rustfmt
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --all --all-features
|
run: cargo test --all --all-features
|
||||||
@@ -80,6 +82,7 @@ jobs:
|
|||||||
- name: Install rustfmt
|
- name: Install rustfmt
|
||||||
run: rustup component add rustfmt
|
run: rustup component add rustfmt
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Run interop tests
|
- name: Run interop tests
|
||||||
run: ./interop/test.sh
|
run: ./interop/test.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user