From da5de6a240a175e66526c76dd0806ca1f58516cc Mon Sep 17 00:00:00 2001 From: mauwii Date: Sat, 29 Oct 2022 18:50:37 +0200 Subject: [PATCH] remove some bloating caches since free 10GB Limit is already overused multiple times --- .github/workflows/build-container.yml | 3 +-- .github/workflows/test-invoke-conda.yml | 21 --------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 036ad9679d..2aa9433d01 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -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: diff --git a/.github/workflows/test-invoke-conda.yml b/.github/workflows/test-invoke-conda.yml index b70e8ff2a1..487c89c249 100644 --- a/.github/workflows/test-invoke-conda.yml +++ b/.github/workflows/test-invoke-conda.yml @@ -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