From 5c7946676f5d574fbc260b5a60e0646ff70372b1 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 23 Apr 2024 18:54:49 +0800 Subject: [PATCH] test Signed-off-by: Kevin Su --- .github/actions/clear-action-cache/action.yml | 11 +++++++++++ .github/workflows/checks_new.yml | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 .github/actions/clear-action-cache/action.yml 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: