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