Skip to content

Commit

Permalink
添加清空大小
Browse files Browse the repository at this point in the history
  • Loading branch information
elysia-best committed Mar 10, 2024
1 parent d01ac92 commit 3f1c23c
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/build-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,44 @@ jobs:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Free up spaces
run: |
echo "=============================================================================="
echo "Freeing up disk space on CI system"
echo "=============================================================================="
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^ghc-*'
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell monodoc-http mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
# deleting 15GB
rm -rf /usr/share/dotnet/
rm -rf /opt/hostedtoolcache
df -h
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 4096
swap-size-mb: 512
remove-dotnet: 'true'
remove-android: 'true'

- uses: pguyot/arm-runner-action@v2
with:
base_image: raspios_lite_arm64:latest
copy_artifact_path: LingmoSrcBuild/Deb
copy_artifact_dest: LingmoSrcBuild/Deb
use_systemd_nspawn: true
bind_mount_repository: true
commands: |
apt-get update -y
apt-get upgrade -y
Expand Down

0 comments on commit 3f1c23c

Please sign in to comment.