Skip to content

Commit 41d5434

Browse files
authored
docs: use and mention ubuntu-slim for small tasks (#729)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent a6609ab commit 41d5434

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.github/workflows/docs-link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515

1616
jobs:
1717
documentation-links:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-slim
1919
if: github.event.repository.fork == false
2020
steps:
2121
- uses: readthedocs/actions/preview@v1

.github/workflows/reusable-change-detection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
change-detection:
1414
name: Identify source changes
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-slim
1616
timeout-minutes: 1
1717
outputs:
1818
run-cookie: ${{ steps.cookie-changes.outputs.run-cookie || false }}

docs/pages/guides/gha_basic.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,22 @@ The formula here for installing should be identical for all users; and using
134134
builds, you are even guaranteed a consistent wheel will be produced just as if
135135
you were building a final package.
136136

137+
There are a variety of
138+
[images to pick from](https://docs.github.com/en/actions/reference/runners/github-hosted-runners#single-cpu-runners),
139+
such as:
140+
141+
| Image name | Description | |==================|=============| |
142+
`ubuntu-latest` | Standard Linux runner (specific versions available) | |
143+
`windows-latest` | Standard Windows runner (specific versions available) | |
144+
`macos-latest` | Standard MacOS runner (specific versions available) | |
145+
`ubuntu-24.04-arm` | Linux ARM runner (no `latest` tag) | | `windows-11-arm` |
146+
Windows ARM runner (no specific versions) | | `macos-15-intel` | MacOS Intel
147+
runner (final version) | | `ubuntu-slim` | Fast startup single-core container |
148+
149+
Note that while versioned images are available, like `ubuntu-24.04`, these are
150+
all rolling images; selecting a specific image will not make your CI completely
151+
static. And old versioned images are decommissioned.
152+
137153
## Updating
138154

139155
{% rr GH200 %} {% rr GH210 %} If you use non-default actions in your repository
@@ -348,7 +364,7 @@ As an example, if you had `lint` and `checks` jobs, use this:
348364
pass:
349365
if: always()
350366
needs: [lint, checks]
351-
runs-on: ubuntu-latest
367+
runs-on: ubuntu-slim
352368
steps:
353369
- uses: re-actors/alls-green@release/v1
354370
with:

0 commit comments

Comments
 (0)