Skip to content

Commit

Permalink
ci: make ubuntu versions consistent across workflow file jobs
Browse files Browse the repository at this point in the history
Make Ubuntu versions consistent across workflow file jobs: use
`ubuntu-22.04`.

Take advantage of the commit to make the disk space cleanup process
consistent across workflow files:
- Update the package information prior to removing the packages.
- Free some additional space by removing `aspnet` packages.
  • Loading branch information
jhlegarreta committed Sep 18, 2023
1 parent b1289e3 commit 0558703
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:

test-cypress:
name: itk-wasm browser tests
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push,pull_request]
jobs:
test-node-example:
name: node-js
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./examples/node-js
Expand All @@ -18,6 +18,7 @@ jobs:
# Workaround for https://github.com/actions/virtual-environments/issues/709
df -h
sudo apt-get update
sudo apt-get remove -y '^aspnet-.*'
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:

build-test-hello-pipeline-example:
name: hello-pipeline build test
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

defaults:
run:
Expand Down Expand Up @@ -160,7 +161,7 @@ jobs:
build-test-inputs-outputs-example:
name: inputs-outputs
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

defaults:
run:
Expand Down Expand Up @@ -201,7 +202,7 @@ jobs:
test-umd-example:
name: umd
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -230,7 +231,7 @@ jobs:

test-webpack-example:
name: webpack
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -266,7 +267,7 @@ jobs:

test-vite-example:
name: vite
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/javascript-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
# Workaround for https://github.com/actions/virtual-environments/issues/709
df -h
sudo apt-get update
sudo apt-get remove -y '^aspnet-.*'
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: pull_request

jobs:
pr-checks:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: Check and lint PR
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/toolchains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push,pull_request]
jobs:
build-itk-wasm-base:
name: "Build itk-wasm-base"
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand All @@ -14,6 +14,8 @@ jobs:
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/709
df -h
sudo apt-get update
sudo apt-get remove -y '^aspnet-.*'
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
build-itk-wasm:
name: "Build itk-wasm"
needs: build-itk-wasm-base
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/wasi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push,pull_request]

jobs:
build-test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
Expand All @@ -13,6 +13,8 @@ jobs:
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/709
df -h
sudo apt-get update
sudo apt-get remove -y '^aspnet-.*'
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
Expand Down

0 comments on commit 0558703

Please sign in to comment.