ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 2m7s
Gitea Actions Demo / docker (push) Has been skipped

This commit is contained in:
Ivan Li 2023-05-21 16:56:55 +08:00
parent 56f7cb788e
commit e2c3d18d63

View File

@ -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