Skip to content

Commit

Permalink
Try explicit cache clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru committed Mar 27, 2024
1 parent 4ec4f99 commit 42d3777
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/clear-action-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Clear action cache'
description: 'As suggested by GitHub to prevent low disk space: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173'
runs:
using: 'composite'
steps:
- shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
6 changes: 6 additions & 0 deletions .github/workflows/check-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ jobs:
with:
jvm: ${{ matrix.java-version }}

- name: 'Clear action cache'
uses: ./.github/actions/clear-action-cache

- name: Run test with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }}
run: sbt ++${{ matrix.scalaVersion }} ${{ matrix.sbt-opts }} "test"

Expand Down Expand Up @@ -189,6 +192,9 @@ jobs:
with:
jvm: temurin:1.11

- name: 'Clear action cache'
uses: ./.github/actions/clear-action-cache

- name: Run multi-broker and long running integration tests
run: sbt "integration-tests/test"

Expand Down

0 comments on commit 42d3777

Please sign in to comment.