remove some bloating caches

since free 10GB Limit is already  overused multiple times
This commit is contained in:
mauwii 2022-10-29 18:50:37 +02:00
parent 3d265e28ff
commit da5de6a240
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB
2 changed files with 1 additions and 23 deletions

View File

@ -29,8 +29,7 @@ jobs:
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: ${{ runner.os }}-buildx-
key: buildx-${{ hashFiles('docker-build/Dockerfile') }}
- name: Build container
uses: docker/build-push-action@v3
with:

View File

@ -53,16 +53,6 @@ jobs:
path: ~/conda_pkgs_dir
key: conda-pkgs-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles(matrix.environment-file) }}
- name: Use Cached Huggingface and Torch models
id: cache-hugginface-and-torch-models
uses: actions/cache@v3
env:
cache-name: cache-hugginface-and-torch-models
with:
path: ~/.cache
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}-${{ hashFiles('scripts/preload_models.py') }}
- name: Activate Conda Env
id: activate-conda-env
uses: conda-incubator/setup-miniconda@v2
@ -83,19 +73,8 @@ jobs:
if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/development' }}
run: echo "TEST_PROMPTS=tests/validate_pr_prompt.txt" >> $GITHUB_ENV
- name: Use Cached ${{ matrix.stable-diffusion-model-switch }}
id: cache-stable-diffusion-model
uses: actions/cache@v3
env:
cache-name: cache-sd-${{ matrix.stable-diffusion-model }}
with:
path: ${{ matrix.stable-diffusion-model-dl-path }}
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}
- name: Download ${{ matrix.stable-diffusion-model-switch }}
id: download-stable-diffusion-model
if: ${{ steps.cache-stable-diffusion-model.outputs.cache-hit != 'true' }}
run: |
[[ -d models/ldm/stable-diffusion-v1 ]] \
|| mkdir -p models/ldm/stable-diffusion-v1