Skip to content

Commit

Permalink
trying to remove disk space on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyjosh committed Sep 9, 2024
1 parent 9be40c2 commit b35a6a5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,33 @@ jobs:
CI_SEPOLIA_METABOARD_URL: ${{ vars.CI_SEPOLIA_METABOARD_URL }}
RPC_URL_ETHEREUM_FORK: ${{ secrets.RPC_URL_ETHEREUM_FORK }}
COMMIT_SHA: ${{ github.sha }}

steps:
- name: Free up disk space in action runner (Ubuntu)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get clean
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Free up disk space in action runner (Macos)
if: matrix.platform == 'macos-13' || matrix.platform == 'macos-14'
run: |
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
df -h /
find /Applications/ -name "Xcode*" | sort -r | tail --lines=+2 | xargs rm -rf
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/tauri.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,31 @@ jobs:
RPC_URL_ETHEREUM_FORK: ${{ secrets.RPC_URL_ETHEREUM_FORK }}
COMMIT_SHA: ${{ github.sha }}
steps:
- name: Free up disk space in action runner
- name: Free up disk space in action runner (Ubuntu)
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get clean
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Free up disk space in action runner (Macos)
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
run: |
sudo rm -rf \
"$AGENT_TOOLSDIRECTORY" \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/opt/pipx \
/usr/lib/mono \
/usr/local/julia* \
/usr/local/lib/android \
/usr/local/lib/node_modules \
/usr/local/share/chromium \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift
df -h /
find /Applications/ -name "Xcode*" | sort -r | tail --lines=+2 | xargs rm -rf
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit b35a6a5

Please sign in to comment.