Skip to content

Commit

Permalink
ci: free up disk space for android build (#4028)
Browse files Browse the repository at this point in the history
* ci: free up disk space for android build

* tmp

* free disk space

* move to reusable action

* add cleanup to other workflows
  • Loading branch information
vaind committed Aug 19, 2024
1 parent 8d08908 commit 1ffdfff
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/actions/disk-cleanup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Disk cleanup
description: Free disk space

runs:
using: composite

steps:
- shell: bash
run: |
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /usr/share/swift
sudo rm -rf /usr/lib/google-cloud-sdk
sudo rm -rf /usr/local/aws*
sudo rm -rf /usr/local/julia*
sudo rm -rf /usr/local/share/chromium
df -h
9 changes: 9 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/disk-cleanup
if: ${{ matrix.platform == 'android' }}

- run: sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
if: ${{ matrix.platform == 'ios' }}

Expand Down Expand Up @@ -217,6 +220,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/disk-cleanup
if: ${{ matrix.platform == 'android' }}

- name: Sentry Release
run: |
SENTRY_RELEASE_CANDIDATE=$(echo 'e2e/${{ github.ref }}' | perl -pe 's/\//-/g')
Expand Down Expand Up @@ -365,6 +371,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/disk-cleanup
if: ${{ matrix.platform == 'android' }}

- name: Setup Global Xcode Tools
if: ${{ matrix.platform == 'ios' }}
run: which xcbeautify || brew install xcbeautify
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/native-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/disk-cleanup

- uses: actions/setup-java@v4
with:
java-version: '17'
Expand Down

0 comments on commit 1ffdfff

Please sign in to comment.