Skip to content

Commit 5271796

Browse files
Update on-tag.yml (#31)
1 parent 8480008 commit 5271796

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/on-tag.yml

+27
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,33 @@ jobs:
5454
sudo systemctl restart docker
5555
sudo df -h | grep docker
5656
57+
# Add caching for Cargo registry
58+
- name: Cache Cargo registry
59+
uses: actions/cache@v3
60+
with:
61+
path: ~/.cargo/registry
62+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
63+
restore-keys: |
64+
${{ runner.os }}-cargo-registry-
65+
66+
# Add caching for Cargo index
67+
- name: Cache Cargo index
68+
uses: actions/cache@v3
69+
with:
70+
path: ~/.cargo/index
71+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
72+
restore-keys: |
73+
${{ runner.os }}-cargo-index-
74+
75+
# Add caching for Cargo build
76+
- name: Cache Cargo build
77+
uses: actions/cache@v3
78+
with:
79+
path: target
80+
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
81+
restore-keys: |
82+
${{ runner.os }}-cargo-build-
83+
5784
- name: Set env variables
5885
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
5986

0 commit comments

Comments
 (0)