add caching to CI
This commit is contained in:
@@ -44,6 +44,14 @@ jobs:
|
|||||||
- name: check version
|
- name: check version
|
||||||
# cut off the v part of the tag to only search for the number
|
# cut off the v part of the tag to only search for the number
|
||||||
run: grep --quiet "$(echo "${{ github.ref_name }}" | cut -c2-)" Cargo.toml
|
run: grep --quiet "$(echo "${{ github.ref_name }}" | cut -c2-)" Cargo.toml
|
||||||
|
- name: cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: test
|
- name: test
|
||||||
run: cargo test --release
|
run: cargo test --release
|
||||||
- name: make completion/manpage folders
|
- name: make completion/manpage folders
|
||||||
|
|||||||
Reference in New Issue
Block a user