Skip to content

Commit ec7b5e0

Browse files
Remove bloatware to free up space for python builds
1 parent c62d972 commit ec7b5e0

File tree

1 file changed

+79
-52
lines changed

1 file changed

+79
-52
lines changed

.github/workflows/nightly-seed-grouping.yml

Lines changed: 79 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- cron: "0 5 * * *"
77
# Runs when triggered manually to do so
88
workflow_dispatch:
9+
# CHRISM - temp
10+
push:
11+
branches:
12+
- mallinson/remove-bloat
913

1014
# Cancel previous workflows when another is triggered
1115
concurrency:
@@ -20,31 +24,51 @@ jobs:
2024
fail-fast: false # Let all tests run and cascade errors, will only PR generator updates that passed
2125
matrix:
2226
sdk-name: [
23-
ruby-model,
24-
ruby-sdk,
25-
ruby-sdk-v2,
26-
pydantic,
27-
# python-sdk, Turned off until Python is no longer hangings
28-
fastapi,
29-
openapi,
30-
postman,
31-
java-sdk,
32-
java-model,
33-
java-spring,
34-
ts-sdk,
35-
ts-express,
36-
go-fiber,
37-
go-model,
38-
go-sdk,
39-
csharp-model,
40-
csharp-sdk,
41-
php-model,
42-
php-sdk,
43-
swift-sdk,
44-
rust-model,
45-
rust-sdk
27+
# CHRISM - temp
28+
python-sdk
29+
# ruby-model,
30+
# ruby-sdk,
31+
# ruby-sdk-v2,
32+
# pydantic,
33+
# python-sdk,
34+
# fastapi,
35+
# openapi,
36+
# postman,
37+
# java-sdk,
38+
# java-model,
39+
# java-spring,
40+
# ts-sdk,
41+
# ts-express,
42+
# go-fiber,
43+
# go-model,
44+
# go-sdk,
45+
# csharp-model,
46+
# csharp-sdk,
47+
# php-model,
48+
# php-sdk,
49+
# swift-sdk,
50+
# rust-model,
51+
# rust-sdk
4652
]
4753
steps:
54+
# Note: this step is meant for when running on ubuntu-latest
55+
- name: Remove Bloat
56+
if: ${{ matrix.sdk-name == "python-sdk" && runner.os == "Linux" }}
57+
uses: jlumbroso/free-disk-space@main
58+
with:
59+
# this might remove tools that are actually needed,
60+
# if set to "true" but frees about 6 GB
61+
tool-cache: false
62+
63+
# all of these default to true, but feel free to set to
64+
# "false" if necessary for your workflow
65+
android: true
66+
dotnet: true
67+
haskell: true
68+
large-packages: true
69+
docker-images: true
70+
swap-storage: true
71+
4872
- name: Checkout Repo
4973
uses: actions/checkout@v4
5074

@@ -101,29 +125,31 @@ jobs:
101125
matrix:
102126
sdk-name:
103127
[
104-
ruby-model,
105-
ruby-sdk,
106-
ruby-sdk-v2,
107-
pydantic,
108-
python-sdk,
109-
fastapi,
110-
openapi,
111-
postman,
112-
java-sdk,
113-
java-model,
114-
java-spring,
115-
ts-sdk,
116-
ts-express,
117-
go-fiber,
118-
go-model,
119-
go-sdk,
120-
csharp-model,
121-
csharp-sdk,
122-
php-model,
123-
php-sdk,
124-
swift-sdk,
125-
rust-model,
126-
rust-sdk
128+
# CHRISM - temp
129+
python-sdk
130+
# ruby-model,
131+
# ruby-sdk,
132+
# ruby-sdk-v2,
133+
# pydantic,
134+
# python-sdk,
135+
# fastapi,
136+
# openapi,
137+
# postman,
138+
# java-sdk,
139+
# java-model,
140+
# java-spring,
141+
# ts-sdk,
142+
# ts-express,
143+
# go-fiber,
144+
# go-model,
145+
# go-sdk,
146+
# csharp-model,
147+
# csharp-sdk,
148+
# php-model,
149+
# php-sdk,
150+
# swift-sdk,
151+
# rust-model,
152+
# rust-sdk
127153
]
128154
include:
129155
- number-of-groups-override: 14 # java-sdk override since this one is taking a while
@@ -270,9 +296,10 @@ jobs:
270296
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
271297
merge-method: squash
272298

273-
- name: Approve PR
274-
if: steps.cpr.outputs.pull-request-operation == 'created'
275-
uses: ./.github/actions/auto-approve
276-
with:
277-
approver-gh-token: ${{ secrets.PR_BOT_GH_PAT }}
278-
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
299+
# CHRISM - temp
300+
# - name: Approve PR
301+
# if: steps.cpr.outputs.pull-request-operation == 'created'
302+
# uses: ./.github/actions/auto-approve
303+
# with:
304+
# approver-gh-token: ${{ secrets.PR_BOT_GH_PAT }}
305+
# pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}

0 commit comments

Comments
 (0)