Skip to content

Commit

Permalink
Remove unused ubuntu packages to avoid running out of disk space
Browse files Browse the repository at this point in the history
when building nix derivations
  • Loading branch information
teodanciu committed Sep 5, 2023
1 parent 453d19d commit 2d5b178
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@ jobs:
os: [ubuntu-latest]

steps:

# Update the local package list in order to ensure that the action freeing up space will succeed
- name: "Update package list"
if: ${{ github.event_name == 'schedule' }}
run: |
sudo apt-get update
# there is not enough disk space to build nix derivations in the nightly build,
# so we're removing some unneccesary software from the ubuntu image
- name: Free disk space
if: ${{ github.event_name == 'schedule' }}
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: false
large-packages: false # takes a long time to free not so much space, so it's disabled at the moment
docker-images: true
swap-storage: false # disabled, otherwise running out of memory during tests

- uses: actions/checkout@v3
- name: Set NIGHTLY environment variable if the job was triggered by the scheduler
if: ${{ github.event_name == 'schedule' }}
Expand Down

0 comments on commit 2d5b178

Please sign in to comment.