Skip to content

Commit 2fd0567

Browse files
committed
Clean up runner space before running actions
14Gb default space is probably not enough for us anymore ``` [ec2-user@ip-172-31-49-57 ipa]$ du -sh target/ 36G target/ ``` see the discussion here actions/runner-images#2875
1 parent cb0fe9e commit 2fd0567

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/actions/rm/action.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# this name is currently not visible on GitHub due to https://github.com/actions/runner/issues/1877
2+
name: "Free disk space"
3+
description: "Frees up disk space on GitHub Ubuntu runners"
4+
runs:
5+
using: "composite"
6+
steps:
7+
- uses: jlumbroso/free-disk-space@main
8+
with:
9+
10+
# These 5 options give back ~32Gb. If that's not enough, the remaining flags can be set to `true` at the expense
11+
# of this action taking longer to finish
12+
android: true
13+
dotnet: true
14+
haskell: true
15+
docker-images: true
16+
swap-storage: true
17+
18+
large-packages: false
19+
tool-cache: false

.github/workflows/check.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
name: Basic Checks
2727
env:
2828
CARGO_INCREMENTAL: 0
29-
3029
runs-on: ubuntu-latest
3130

3231
steps:
3332
- uses: actions/checkout@v3
33+
- uses: ./.github/actions/rm
3434

3535
- uses: dtolnay/rust-toolchain@stable
3636
with:
@@ -74,6 +74,7 @@ jobs:
7474
RUSTFLAGS: -C target-cpu=native
7575
steps:
7676
- uses: actions/checkout@v3
77+
- uses: ./.github/actions/rm
7778

7879
- uses: dtolnay/rust-toolchain@stable
7980
with:
@@ -107,6 +108,7 @@ jobs:
107108

108109
steps:
109110
- uses: actions/checkout@v3
111+
- uses: ./.github/actions/rm
110112

111113
- uses: dtolnay/rust-toolchain@stable
112114
with:

0 commit comments

Comments
 (0)