Skip to content

Commit

Permalink
Use easimon/maximize-build-space for the upload_assets.yml workflow
Browse files Browse the repository at this point in the history
(renamed from generate_assets.yml)

Hope it does not run out of disk space again for our 22 scenarios!
  • Loading branch information
anthonyfok committed Aug 14, 2023
1 parent bdb5170 commit 36c9be6
Showing 1 changed file with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,29 @@ jobs:
upload-release-assets:
runs-on: ubuntu-latest
steps:
- name: Make more room by deleting unused software
run: |
set -x
df -h
du -csh /usr/share/dotnet
du -csh /usr/local/lib/android
sudo eatmydata rm -f -r /usr/share/dotnet
sudo eatmydata rm -f -r /usr/local/lib/android
df -h
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'

- name: Checkout earthquake-scenarios repository
uses: actions/checkout@v3
with:
lfs: 'true'

- name: Check disk usage
run: |
du -csh .git/*
du -csh FINISHED/geopackages/*
du -csh FINISHED/*.csv
du -csh .
- name: Upload FINISHED CSV and GeoPackage files as release assets
uses: xresloader/upload-to-github-release@v1
env:
Expand Down

0 comments on commit 36c9be6

Please sign in to comment.