Skip to content

Commit

Permalink
fix(ci): cannot build
Browse files Browse the repository at this point in the history
Error Message: "System.IO.IOException: No space left on device : '/home/runner/runners/2.314.1/_diag/Worker_20240319-092839-utc.log'"

Ref: actions/runner-images#9494

Signed-off-by: Kevin Cui <[email protected]>
  • Loading branch information
BlackHole1 committed Mar 19, 2024
1 parent f9269d4 commit 591ae7c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ jobs:
version: ${{ steps.properties.outputs.version }}
changelog: ${{ steps.properties.outputs.changelog }}
steps:

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
- 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"

# Check out current repository
- name: Fetch Sources
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ jobs:
contents: write
pull-requests: write
steps:
- 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"

# Check out current repository
- name: Fetch Sources
Expand Down

0 comments on commit 591ae7c

Please sign in to comment.