mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 22:01:22 +00:00
9a64a24f29
Backport #27485 by @techknowlogick I'm temporarily unable to properly evaluate actuated runners, and so I'm switching back to hosted runners until I am able to focus on that again. --------- Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-authored-by: silverwind <me@silverwind.io>
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: disk-clean
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
triage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# FIXME: https://github.com/jlumbroso/free-disk-space/issues/17
|
|
- name: same as 'large-packages' but without 'google-cloud-sdk'
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get remove -y '^dotnet-.*'
|
|
sudo apt-get remove -y '^llvm-.*'
|
|
sudo apt-get remove -y 'php.*'
|
|
sudo apt-get remove -y '^mongodb-.*'
|
|
sudo apt-get remove -y '^mysql-.*'
|
|
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
|
|
sudo apt-get autoremove -y
|
|
sudo apt-get clean
|
|
- 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
|
|
|
|
# all of these default to true, but feel free to set to
|
|
# "false" if necessary for your workflow
|
|
android: true
|
|
dotnet: true
|
|
haskell: true
|
|
large-packages: false
|
|
docker-images: false
|
|
swap-storage: true
|