diff --git a/.github/actions/clear-action-cache/action.yml b/.github/actions/clear-action-cache/action.yml new file mode 100644 index 000000000..a29347b61 --- /dev/null +++ b/.github/actions/clear-action-cache/action.yml @@ -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: | + rm -rf /usr/share/dotnet + rm -rf /opt/ghc + rm -rf "/usr/local/share/boost" + rm -rf "$AGENT_TOOLSDIRECTORY" diff --git a/.github/workflows/checks_new.yml b/.github/workflows/checks_new.yml index 5164fa4e8..0b8da49eb 100644 --- a/.github/workflows/checks_new.yml +++ b/.github/workflows/checks_new.yml @@ -45,6 +45,8 @@ jobs: example: "${{ fromJson(needs.list_examples.outputs.packages) }}" steps: - uses: actions/checkout@v4 + - name: 'Clear action cache' + uses: ./.github/actions/clear-action-cache - name: Set up Python uses: actions/setup-python@v4 with: