Skip to content

Commit b03da30

Browse files
committed
Free up space on GitHub workflow images
1 parent 8c19896 commit b03da30

File tree

6 files changed

+53
-0
lines changed

6 files changed

+53
-0
lines changed

.github/workflows/ci-a11y-vrt.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
- name: Checkout branch
2424
uses: actions/checkout@v3
2525

26+
- name: Free up space on GitHub image
27+
run: |
28+
# Based on the official advice:
29+
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
30+
sudo rm -rf /usr/share/dotnet
31+
sudo rm -rf /opt/ghc
32+
sudo rm -rf "/usr/local/share/boost"
33+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
34+
2635
- name: Setup Node with v16.13.0
2736
uses: actions/setup-node@v3
2837
with:

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ jobs:
1818
- name: Checkout branch
1919
uses: actions/checkout@v3
2020

21+
- name: Free up space on GitHub image
22+
run: |
23+
# Based on the official advice:
24+
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
25+
sudo rm -rf /usr/share/dotnet
26+
sudo rm -rf /opt/ghc
27+
sudo rm -rf "/usr/local/share/boost"
28+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
29+
2130
- name: Setup Node with v${{ matrix.node-version }}
2231
uses: actions/setup-node@v3
2332
with:

.github/workflows/publish-polaris-for-vscode.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ jobs:
1313
- uses: actions/checkout@v3
1414
name: Checkout
1515

16+
- name: Free up space on GitHub image
17+
run: |
18+
# Based on the official advice:
19+
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
20+
sudo rm -rf /usr/share/dotnet
21+
sudo rm -rf /opt/ghc
22+
sudo rm -rf "/usr/local/share/boost"
23+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
24+
1625
- uses: actions/setup-node@v3
1726
name: Use Node.js 16.x
1827
with:

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ jobs:
1515
- name: Checkout Repo
1616
uses: actions/checkout@v3
1717

18+
- name: Free up space on GitHub image
19+
run: |
20+
# Based on the official advice:
21+
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
22+
sudo rm -rf /usr/share/dotnet
23+
sudo rm -rf /opt/ghc
24+
sudo rm -rf "/usr/local/share/boost"
25+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
26+
1827
- name: Setup Node.js
1928
uses: actions/setup-node@v3
2029
with:

.github/workflows/size-limit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ jobs:
1313
CI_JOB_NUMBER: 1
1414
steps:
1515
- uses: actions/checkout@v3
16+
- name: Free up space on GitHub image
17+
run: |
18+
# Based on the official advice:
19+
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
20+
sudo rm -rf /usr/share/dotnet
21+
sudo rm -rf /opt/ghc
22+
sudo rm -rf "/usr/local/share/boost"
23+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
1624
- uses: actions/setup-node@v3
1725
with:
1826
node-version: 16

.github/workflows/snapit.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ jobs:
7777
git checkout origin/main -- .changeset
7878
fi
7979
80+
- name: Free up space on GitHub image
81+
run: |
82+
# Based on the official advice:
83+
# https://github.com/actions/virtual-environments/issues/2840#issuecomment-790492173
84+
sudo rm -rf /usr/share/dotnet
85+
sudo rm -rf /opt/ghc
86+
sudo rm -rf "/usr/local/share/boost"
87+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
88+
8089
- name: Setup Node.js
8190
uses: actions/setup-node@v3
8291
with:

0 commit comments

Comments
 (0)