ci: cache dependencies.
This commit is contained in:
parent
56f7cb788e
commit
e2c3d18d63
@ -21,11 +21,17 @@ jobs:
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ./target
|
||||
key: ${{ runner.os }}-release-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Cache Executable Binary
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ./target/release/network-monitor
|
||||
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag}}
|
||||
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
Reference in New Issue
Block a user