Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiprof committed May 27, 2024
1 parent 2106c56 commit c554b12
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 19 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,6 @@ jobs:
${{matrix.os}} ${{matrix.info}} ccache-dir ${{github.ref}} run-'
${{matrix.os}} ${{matrix.info}} ccache-
- name: Check place before maximize
run: df -h

- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'

- name: Check place after maximize
run: df -h

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -153,6 +140,27 @@ jobs:
run: |
./scripts/rabbitmq/ubuntu_install_rabbitmq_server.sh
# Clean unnecessary files to save disk space
- name: clean unncessary files to save space
run: |
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d
sudo apt -y autoremove --purge
sudo apt -y autoclean
sudo apt clean
rm --recursive --force "$AGENT_TOOLSDIRECTORY"
# Free up disk space on Ubuntu
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: false
large-packages: true
swap-storage: true

- name: Check place after maximize
run: df -h

- name: Setup ccache
run: |
ccache -M 2.0GB
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,23 @@ jobs:
- name: Check place before maximize
run: df -h

- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
# Clean unnecessary files to save disk space
- name: clean unncessary files to save space
run: |
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/sudo apt/sources.list.d
sudo apt -y autoremove --purge
sudo apt -y autoclean
sudo apt clean
rm --recursive --force "$AGENT_TOOLSDIRECTORY"
# Free up disk space on Ubuntu
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: false
large-packages: true
swap-storage: true

- name: Check place after maximize
run: df -h
Expand Down

0 comments on commit c554b12

Please sign in to comment.