ci: cache dependencies.
This commit is contained in:
parent
d8168a9576
commit
62690b92de
@ -39,17 +39,6 @@ jobs:
|
||||
|
||||
- run: echo "steps.restore-dependencies.outputs.cache-primary-key = ${{ steps.restore-dependencies.outputs.cache-primary-key }}"
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ steps.restore-dependencies.outputs.cache-primary-key }}
|
||||
|
||||
- id: tag
|
||||
uses: https://github.com/Maxyme/get-release-or-tag@v2
|
||||
|
||||
@ -57,7 +46,7 @@ jobs:
|
||||
run: cargo build --release
|
||||
|
||||
- name: Cache Executable Binary
|
||||
uses: https://github.com/actions/cache@v3
|
||||
uses: https://github.com/actions/cache/save@v3
|
||||
with:
|
||||
path: ./target/release/network-monitor
|
||||
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
|
||||
@ -71,12 +60,15 @@ jobs:
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
steps:
|
||||
- id: tag
|
||||
uses: https://github.com/Maxyme/get-release-or-tag@v2
|
||||
|
||||
- id: restore-executable-binary
|
||||
name: Cache Executable Binaries
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: ./network-monitor
|
||||
key: ${{ runner.os }}-release-${{ steps.commit.outputs.short}}
|
||||
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
|
||||
- if: ${{ steps.restore-executable-binary.outputs.cache-hit != 'true' }}
|
||||
name: List the state of node modules
|
||||
run: echo "missing program"
|
||||
|
Loading…
Reference in New Issue
Block a user