ci: disable cache

This commit is contained in:
🪞👃🪞 2025-04-19 23:07:37 +03:00
parent 0027952260
commit 0fa6d31c7e

View file

@ -12,24 +12,24 @@ jobs:
- run: git clone --depth 1 --recursive $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
- run: whoami && pwd && tree && cloc src/ && cloc .
- id: cache
name: cache restore
uses: https://data.forgejo.org/actions/cache/restore@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
#- id: cache
#name: cache restore
#uses: https://data.forgejo.org/actions/cache/restore@v4
#with:
#key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#path: |
#~/.cargo/bin/
#~/.cargo/registry/index/
#~/.cargo/registry/cache/
#~/.cargo/git/db/
#target/
- name: cache hit
if: steps.cache.outputs.cache-hit == 'true'
run: echo "cache hit! :)"
- name: cache miss
if: steps.cache.outputs.cache-miss != 'true'
run: echo "cache miss! :("
#- name: cache hit
#if: steps.cache.outputs.cache-hit == 'true'
#run: echo "cache hit! :)"
#- name: cache miss
#if: steps.cache.outputs.cache-miss != 'true'
#run: echo "cache miss! :("
- run: cloc src/ && cloc .
- run: rustup-init -y
@ -37,13 +37,13 @@ jobs:
- run: source "$HOME/.cargo/env" && RUSTFLAGS="-Ctarget-feature=-crt-static" just test
- run: tree
- name: cache save
uses: https://data.forgejo.org/actions/cache/save@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
#- name: cache save
#uses: https://data.forgejo.org/actions/cache/save@v4
#with:
#key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
#path: |
#~/.cargo/bin/
#~/.cargo/registry/index/
#~/.cargo/registry/cache/
#~/.cargo/git/db/
#target/