Skip to content

Commit a9bec9b

Browse files
authored
Merge pull request #934 from jhlegarreta/MakeUbuntuVersionsConsistent
ci: make ubuntu versions consistent across workflow file jobs
2 parents 0524b9d + 55166f1 commit a9bec9b

6 files changed

Lines changed: 59 additions & 203 deletions

File tree

.github/workflows/cypress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66

77
test-cypress:
88
name: itk-wasm browser tests
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-22.04
1010

1111
steps:
1212
- name: Checkout

.github/workflows/examples.yml

Lines changed: 46 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,18 @@ on: [push,pull_request]
55
jobs:
66
test-node-example:
77
name: node-js
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-22.04
99
defaults:
1010
run:
1111
working-directory: ./examples/node-js
1212

1313
steps:
1414
- uses: actions/checkout@v3
1515

16-
- name: 'Free up disk space'
17-
run: |
18-
# Workaround for https://github.com/actions/virtual-environments/issues/709
19-
df -h
20-
sudo apt-get update
21-
sudo apt-get remove -y '^dotnet-.*'
22-
sudo apt-get remove -y '^llvm-.*'
23-
sudo apt-get remove -y 'php.*'
24-
sudo apt-get autoremove -y
25-
sudo apt-get clean
26-
sudo rm -rf "/usr/local/share/boost"
27-
sudo rm -rf /usr/share/dotnet/
28-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
29-
df -h
16+
- name: Free Disk Space (Ubuntu)
17+
uses: jlumbroso/free-disk-space@main
18+
with:
19+
large-packages: false
3020

3121
- uses: actions/setup-node@v3
3222
with:
@@ -51,20 +41,10 @@ jobs:
5141
steps:
5242
- uses: actions/checkout@v3
5343

54-
- name: 'Free up disk space'
55-
run: |
56-
# Workaround for https://github.com/actions/virtual-environments/issues/709
57-
df -h
58-
sudo apt-get update
59-
sudo apt-get remove -y '^dotnet-.*'
60-
sudo apt-get remove -y '^llvm-.*'
61-
sudo apt-get remove -y 'php.*'
62-
sudo apt-get autoremove -y
63-
sudo apt-get clean
64-
sudo rm -rf "/usr/local/share/boost"
65-
sudo rm -rf /usr/share/dotnet/
66-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
67-
df -h
44+
- name: Free Disk Space (Ubuntu)
45+
uses: jlumbroso/free-disk-space@main
46+
with:
47+
large-packages: false
6848

6949
- uses: actions/setup-node@v3
7050
with:
@@ -116,7 +96,7 @@ jobs:
11696

11797
build-test-hello-pipeline-example:
11898
name: hello-pipeline build test
119-
runs-on: ubuntu-20.04
99+
runs-on: ubuntu-22.04
120100

121101
defaults:
122102
run:
@@ -125,20 +105,10 @@ jobs:
125105
steps:
126106
- uses: actions/checkout@v3
127107

128-
- name: 'Free up disk space'
129-
run: |
130-
# Workaround for https://github.com/actions/virtual-environments/issues/709
131-
df -h
132-
sudo apt-get update
133-
sudo apt-get remove -y '^dotnet-.*'
134-
sudo apt-get remove -y '^llvm-.*'
135-
sudo apt-get remove -y 'php.*'
136-
sudo apt-get autoremove -y
137-
sudo apt-get clean
138-
sudo rm -rf "/usr/local/share/boost"
139-
sudo rm -rf /usr/share/dotnet/
140-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
141-
df -h
108+
- name: Free Disk Space (Ubuntu)
109+
uses: jlumbroso/free-disk-space@main
110+
with:
111+
large-packages: false
142112

143113
- uses: actions/setup-node@v3
144114
with:
@@ -160,7 +130,7 @@ jobs:
160130
161131
build-test-inputs-outputs-example:
162132
name: inputs-outputs
163-
runs-on: ubuntu-20.04
133+
runs-on: ubuntu-22.04
164134

165135
defaults:
166136
run:
@@ -169,19 +139,10 @@ jobs:
169139
steps:
170140
- uses: actions/checkout@v3
171141

172-
- name: 'Free up disk space'
173-
run: |
174-
# Workaround for https://github.com/actions/virtual-environments/issues/709
175-
df -h
176-
sudo apt-get remove -y '^dotnet-.*'
177-
sudo apt-get remove -y '^llvm-.*'
178-
sudo apt-get remove -y 'php.*'
179-
sudo apt-get autoremove -y
180-
sudo apt-get clean
181-
sudo rm -rf "/usr/local/share/boost"
182-
sudo rm -rf /usr/share/dotnet/
183-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
184-
df -h
142+
- name: Free Disk Space (Ubuntu)
143+
uses: jlumbroso/free-disk-space@main
144+
with:
145+
large-packages: false
185146

186147
- uses: actions/setup-node@v3
187148
with:
@@ -201,25 +162,15 @@ jobs:
201162
202163
test-umd-example:
203164
name: umd
204-
runs-on: ubuntu-20.04
165+
runs-on: ubuntu-22.04
205166

206167
steps:
207168
- uses: actions/checkout@v3
208169

209-
- name: 'Free up disk space'
210-
run: |
211-
# Workaround for https://github.com/actions/virtual-environments/issues/709
212-
df -h
213-
sudo apt-get update
214-
sudo apt-get remove -y '^dotnet-.*'
215-
sudo apt-get remove -y '^llvm-.*'
216-
sudo apt-get remove -y 'php.*'
217-
sudo apt-get autoremove -y
218-
sudo apt-get clean
219-
sudo rm -rf "/usr/local/share/boost"
220-
sudo rm -rf /usr/share/dotnet/
221-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
222-
df -h
170+
- name: Free Disk Space (Ubuntu)
171+
uses: jlumbroso/free-disk-space@main
172+
with:
173+
large-packages: false
223174

224175
- name: Test
225176
uses: cypress-io/github-action@v6
@@ -230,25 +181,15 @@ jobs:
230181

231182
test-webpack-example:
232183
name: webpack
233-
runs-on: ubuntu-20.04
184+
runs-on: ubuntu-22.04
234185

235186
steps:
236187
- uses: actions/checkout@v3
237188

238-
- name: 'Free up disk space'
239-
run: |
240-
# Workaround for https://github.com/actions/virtual-environments/issues/709
241-
df -h
242-
sudo apt-get update
243-
sudo apt-get remove -y '^dotnet-.*'
244-
sudo apt-get remove -y '^llvm-.*'
245-
sudo apt-get remove -y 'php.*'
246-
sudo apt-get autoremove -y
247-
sudo apt-get clean
248-
sudo rm -rf "/usr/local/share/boost"
249-
sudo rm -rf /usr/share/dotnet/
250-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
251-
df -h
189+
- name: Free Disk Space (Ubuntu)
190+
uses: jlumbroso/free-disk-space@main
191+
with:
192+
large-packages: false
252193

253194
- name: Test Webpack Example on Chrome
254195
uses: cypress-io/github-action@v6
@@ -266,25 +207,15 @@ jobs:
266207

267208
test-vite-example:
268209
name: vite
269-
runs-on: ubuntu-20.04
210+
runs-on: ubuntu-22.04
270211

271212
steps:
272213
- uses: actions/checkout@v3
273214

274-
- name: 'Free up disk space'
275-
run: |
276-
# Workaround for https://github.com/actions/virtual-environments/issues/709
277-
df -h
278-
sudo apt-get update
279-
sudo apt-get remove -y '^dotnet-.*'
280-
sudo apt-get remove -y '^llvm-.*'
281-
sudo apt-get remove -y 'php.*'
282-
sudo apt-get autoremove -y
283-
sudo apt-get clean
284-
sudo rm -rf "/usr/local/share/boost"
285-
sudo rm -rf /usr/share/dotnet/
286-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
287-
df -h
215+
- name: Free Disk Space (Ubuntu)
216+
uses: jlumbroso/free-disk-space@main
217+
with:
218+
large-packages: false
288219

289220
- name: Test Vite Example on Chrome
290221
uses: cypress-io/github-action@v6
@@ -310,20 +241,10 @@ jobs:
310241
steps:
311242
- uses: actions/checkout@v3
312243

313-
- name: 'Free up disk space'
314-
run: |
315-
# Workaround for https://github.com/actions/virtual-environments/issues/709
316-
df -h
317-
sudo apt-get update
318-
sudo apt-get remove -y '^dotnet-.*'
319-
sudo apt-get remove -y '^llvm-.*'
320-
sudo apt-get remove -y 'php.*'
321-
sudo apt-get autoremove -y
322-
sudo apt-get clean
323-
sudo rm -rf "/usr/local/share/boost"
324-
sudo rm -rf /usr/share/dotnet/
325-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
326-
df -h
244+
- name: Free Disk Space (Ubuntu)
245+
uses: jlumbroso/free-disk-space@main
246+
with:
247+
large-packages: false
327248

328249
- uses: actions/setup-node@v3
329250
with:
@@ -350,20 +271,10 @@ jobs:
350271
steps:
351272
- uses: actions/checkout@v3
352273

353-
- name: 'Free up disk space'
354-
run: |
355-
# Workaround for https://github.com/actions/virtual-environments/issues/709
356-
df -h
357-
sudo apt-get update
358-
sudo apt-get remove -y '^dotnet-.*'
359-
sudo apt-get remove -y '^llvm-.*'
360-
sudo apt-get remove -y 'php.*'
361-
sudo apt-get autoremove -y
362-
sudo apt-get clean
363-
sudo rm -rf "/usr/local/share/boost"
364-
sudo rm -rf /usr/share/dotnet/
365-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
366-
df -h
274+
- name: Free Disk Space (Ubuntu)
275+
uses: jlumbroso/free-disk-space@main
276+
with:
277+
large-packages: false
367278

368279
- uses: actions/setup-node@v3
369280
with:
@@ -391,20 +302,10 @@ jobs:
391302
steps:
392303
- uses: actions/checkout@v3
393304

394-
- name: 'Free up disk space'
395-
run: |
396-
# Workaround for https://github.com/actions/virtual-environments/issues/709
397-
df -h
398-
sudo apt-get update
399-
sudo apt-get remove -y '^dotnet-.*'
400-
sudo apt-get remove -y '^llvm-.*'
401-
sudo apt-get remove -y 'php.*'
402-
sudo apt-get autoremove -y
403-
sudo apt-get clean
404-
sudo rm -rf "/usr/local/share/boost"
405-
sudo rm -rf /usr/share/dotnet/
406-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
407-
df -h
305+
- name: Free Disk Space (Ubuntu)
306+
uses: jlumbroso/free-disk-space@main
307+
with:
308+
large-packages: false
408309

409310
- uses: actions/setup-node@v3
410311
with:

.github/workflows/javascript-typescript.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,8 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111

12-
- name: 'Free up disk space'
13-
run: |
14-
# Workaround for https://github.com/actions/virtual-environments/issues/709
15-
df -h
16-
sudo apt-get update
17-
sudo apt-get remove -y '^dotnet-.*'
18-
sudo apt-get remove -y '^llvm-.*'
19-
sudo apt-get remove -y 'php.*'
20-
sudo apt-get autoremove -y
21-
sudo apt-get clean
22-
sudo rm -rf "/usr/local/share/boost"
23-
sudo rm -rf /usr/share/dotnet/
24-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
25-
df -h
12+
- name: Free Disk Space (Ubuntu)
13+
uses: jlumbroso/free-disk-space@main
2614

2715
- name: Pull latest Docker images
2816
run: |

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: pull_request
33

44
jobs:
55
pr-checks:
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-22.04
77
name: Check and lint PR
88
steps:
99
- uses: actions/checkout@v3

.github/workflows/toolchains.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,13 @@ on: [push,pull_request]
55
jobs:
66
build-itk-wasm-base:
77
name: "Build itk-wasm-base"
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-22.04
99

1010
steps:
1111
- uses: actions/checkout@v3
1212

13-
- name: 'Free up disk space'
14-
run: |
15-
# Workaround for https://github.com/actions/virtual-environments/issues/709
16-
df -h
17-
sudo apt-get remove -y '^dotnet-.*'
18-
sudo apt-get remove -y '^llvm-.*'
19-
sudo apt-get remove -y 'php.*'
20-
sudo apt-get autoremove -y
21-
sudo apt-get clean
22-
sudo rm -rf "/usr/local/share/boost"
23-
sudo rm -rf /usr/share/dotnet/
24-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
25-
df -h
13+
- name: Free Disk Space (Ubuntu)
14+
uses: jlumbroso/free-disk-space@main
2615

2716
- name: Pull latest Docker images
2817
run: |
@@ -58,24 +47,13 @@ jobs:
5847
build-itk-wasm:
5948
name: "Build itk-wasm"
6049
needs: build-itk-wasm-base
61-
runs-on: ubuntu-20.04
50+
runs-on: ubuntu-22.04
6251

6352
steps:
6453
- uses: actions/checkout@v2
6554

66-
- name: 'Free up disk space'
67-
run: |
68-
# Workaround for https://github.com/actions/virtual-environments/issues/709
69-
df -h
70-
sudo apt-get remove -y '^dotnet-.*'
71-
sudo apt-get remove -y '^llvm-.*'
72-
sudo apt-get remove -y 'php.*'
73-
sudo apt-get autoremove -y
74-
sudo apt-get clean
75-
sudo rm -rf "/usr/local/share/boost"
76-
sudo rm -rf /usr/share/dotnet/
77-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
78-
df -h
55+
- name: Free Disk Space (Ubuntu)
56+
uses: jlumbroso/free-disk-space@main
7957

8058
- name: Pull latest Docker images
8159
run: |

0 commit comments

Comments
 (0)