Skip to content

Commit

Permalink
test(ci): remove "clearCaches" workflow feature
Browse files Browse the repository at this point in the history
in practice it is currently unused
it was added originally because github offered no way to delete caches
cache management (including delete) is possible using github web ui now though,
and it is all I've used for months
  • Loading branch information
mikehardy committed Jun 26, 2024
1 parent 4aecb2a commit 9480c1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Code Quality Checks

on:
workflow_dispatch:
inputs:
clearCaches:
description: "Clear workflow caches where possible"
required: false
type: string
pull_request:
push:
# Ignore merge queue branches on push; avoids merge_group+push concurrency race since ref is same
Expand Down Expand Up @@ -44,14 +39,6 @@ jobs:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
gradle-home-cache-cleanup: true

- name: Clear Caches Optionally
if: "${{ github.event.inputs.clearCaches != '' }}"
shell: bash
run: |
du -sk ~/.gradle
rm -fr ~/.gradle
du -sk ~/.gradle || echo ~/.gradle is gone
- name: Warm Gradle Cache
# This makes sure we fetch gradle network resources with a retry
uses: nick-invision/retry@v3
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/tests_emulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Emulator Tests

on:
workflow_dispatch:
inputs:
clearCaches:
description: "Clear workflow caches where possible"
required: false
type: string
pull_request:
push:
# Ignore merge queue branches on push; avoids merge_group+push concurrency race since ref is same
Expand Down Expand Up @@ -78,17 +73,6 @@ jobs:
restore-keys: |
avd-${{ matrix.api-level }}-${{ matrix.arch }}-${{matrix.target}}-v1
- name: Clear Caches Optionally
if: "${{ github.event.inputs.clearCaches != '' }}"
shell: bash
run: |
du -sk ~/.gradle
du -sk ~/.android
rm -fr ~/.gradle
rm -fr ~/.android
du -sk ~/.gradle || echo ~/.gradle is gone
du -sk ~/.android || echo ~/.android is gone
- name: Warm Gradle Cache
# This makes sure we fetch gradle network resources with a retry
uses: nick-invision/retry@v3
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/tests_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Unit Tests
on:
workflow_dispatch:
inputs:
clearCaches:
description: "Clear workflow caches where possible, empty means false"
required: false
type: string
iterations:
description: "Number of iterations on each chosen operating system. Default 1. Max 85."
required: true
Expand Down Expand Up @@ -151,14 +147,6 @@ jobs:
# Requested in: https://github.com/gradle/actions/issues/167#issuecomment-2052352341
# gradle-home-cache-cleanup: true

- name: Clear Caches Optionally
if: "${{ github.event.inputs.clearCaches != '' }}"
shell: bash
run: |
du -sk ~/.gradle
rm -fr ~/.gradle
du -sk ~/.gradle || echo ~/.gradle is gone
- name: Gradle Dependency Download
uses: nick-invision/retry@v3
with:
Expand Down

0 comments on commit 9480c1f

Please sign in to comment.