cd.yaml: fix cache paths for rust toolchain
Some checks failed
Build && Deploy / cargo build (push) Failing after 32s

This commit is contained in:
Akulij 2025-05-04 00:00:51 +03:00
parent 4827ce030c
commit 8cd8f6306a

View File

@ -23,7 +23,8 @@ jobs:
uses: actions/cache/save@v4 uses: actions/cache/save@v4
with: with:
path: | path: |
~/.rustup/toolchains ~/.rustup
~/.cargo
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }} key: ${{ steps.cache-toolchain.outputs.cache-primary-key }}
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -33,7 +34,8 @@ jobs:
uses: actions/cache/restore@v4 uses: actions/cache/restore@v4
with: with:
path: | path: |
~/.rustup/toolchains ~/.rustup
~/.cargo
key: ${{ runner.os }}-rust-toolchain key: ${{ runner.os }}-rust-toolchain
- run: cargo build --release --target x86_64-unknown-linux-gnu - run: cargo build --release --target x86_64-unknown-linux-gnu
- name: Save cached cargo dependencies - name: Save cached cargo dependencies