From 36c9be669944adf9ddcae6abebd6e32532dace00 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 11 Aug 2023 07:19:07 -0700 Subject: [PATCH] Use easimon/maximize-build-space for the upload_assets.yml workflow (renamed from generate_assets.yml) Hope it does not run out of disk space again for our 22 scenarios! --- ...{generate_assets.yml => upload_assets.yml} | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) rename .github/workflows/{generate_assets.yml => upload_assets.yml} (62%) diff --git a/.github/workflows/generate_assets.yml b/.github/workflows/upload_assets.yml similarity index 62% rename from .github/workflows/generate_assets.yml rename to .github/workflows/upload_assets.yml index c5ded32..12cbc5f 100644 --- a/.github/workflows/generate_assets.yml +++ b/.github/workflows/upload_assets.yml @@ -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: