add cargo cache

This commit is contained in:
JimChenWYU
2024-09-24 14:50:12 +08:00
parent 1f40e97dd8
commit d0f52a2b78
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -59,6 +59,14 @@ jobs:
chmod +x /usr/local/bin/flatc
rm -rf Linux.flatc.binary.g++-13.zip
- name: cache cargo
uses: actions/cache@v3
env:
cache-name: cache-cargo
with:
path: ~/.cargo
key: ${{ runner.os }}-build-${{ env.cache-name }}-v0.0.1
- name: checkout
uses: actions/checkout@v2
+8
View File
@@ -59,6 +59,14 @@ jobs:
chmod +x /usr/local/bin/flatc
rm -rf Linux.flatc.binary.g++-13.zip
- name: cache cargo
uses: actions/cache@v3
env:
cache-name: cache-cargo
with:
path: ~/.cargo
key: ${{ runner.os }}-build-${{ env.cache-name }}-v0.0.1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1