This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 9cd34545f0 Reduce runner disk usage (#741)
9cd34545f0 is described below

commit 9cd34545f08296d561289be2f20e3cb3cef6e388
Author: Jed Cunningham <[email protected]>
AuthorDate: Thu Feb 23 17:04:55 2023 -0600

    Reduce runner disk usage (#741)
---
 .github/workflows/build.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 78460db959..97a4b6c2ea 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,6 +27,13 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
+      # Based on https://github.com/actions/runner-images/issues/2840
+      - name: 🪓 Remove some stuff we don't need
+        run: |
+          sudo rm -rf /usr/share/dotnet
+          sudo rm -rf /opt/ghc
+          sudo rm -rf "/usr/local/share/boost"
+          sudo rm -rf "$AGENT_TOOLSDIRECTORY"
       - name: 🗂 Checkout
         uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f  # 
v2.3.4
         with:
@@ -74,6 +81,10 @@ jobs:
           # The asf.yaml file must be in the branch from which the files are 
published.
           # Otherwise, ASF publising tools cannot detect it.
           cp .asf.yaml ./dist/
+      - name: 🪓 Remove node and node modules
+        run: |
+          rm -rf node_modules
+          sudo rm -rf "$AGENT_TOOLSDIRECTORY/node"
       - name: 🚀 Deploy website on asf-site branch
         uses: 
apache/airflow-JamesIves-github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505
  # v3.7.1
         if: ${{ github.event_name == 'push' }}

Reply via email to