Skip to content

Commit

Permalink
Reduce diskspace usage in GitHub Actions runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jedcunningham committed Feb 23, 2023
1 parent 5c95b62 commit f695c82
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 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' }}
Expand Down

0 comments on commit f695c82

Please sign in to comment.