Skip to content

Commit fb24b6b

Browse files
ci: use -slim runner for small jobs
No need to spin up full VM runners for small automation tasks, when we can use single-CPU runners in containers instead. https://docs.github.com/en/actions/reference/runners/github-hosted-runners#single-cpu-runners (some of this will potentially not work, because dependencies in the slim image might not be available - however, it makes no sense to create this as a PR, because all jobs touched here run on branches only. Thus pushing directly to main)
1 parent 8868d13 commit fb24b6b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/backport.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
backport:
1111
name: Backport
12-
runs-on: ubuntu-24.04
12+
runs-on: ubuntu-slim
1313
# It triggers only when PR is already merged on either:
1414
#
1515
# - The merge event itself (action != labeled) or

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
group: ci-tag-${{ (github.ref == 'refs/heads/main' && github.ref) || github.run_id }}
4444
cancel-in-progress: true
4545
if: vars.RELEASE_ENABLED
46-
runs-on: ubuntu-24.04
46+
runs-on: ubuntu-slim
4747
needs:
4848
- docs
4949
- test

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
prepare:
2323
name: Prepare
24-
runs-on: ubuntu-24.04
24+
runs-on: ubuntu-slim
2525
needs:
2626
- build
2727
steps:
@@ -59,7 +59,7 @@ jobs:
5959
name: GitHub
6060
permissions:
6161
contents: write
62-
runs-on: ubuntu-24.04
62+
runs-on: ubuntu-slim
6363
needs:
6464
- prepare
6565
steps:
@@ -129,7 +129,7 @@ jobs:
129129
130130
docker:
131131
name: Docker Hub
132-
runs-on: ubuntu-24.04-arm
132+
runs-on: ubuntu-slim
133133
needs:
134134
- prepare
135135
if: |
@@ -180,7 +180,7 @@ jobs:
180180
181181
docker-description:
182182
name: Docker Hub Description
183-
runs-on: ubuntu-24.04
183+
runs-on: ubuntu-slim
184184
if: |
185185
vars.DOCKER_REPO && vars.DOCKER_USER &&
186186
github.ref == 'refs/tags/devel'

0 commit comments

Comments
 (0)