Skip to content

Commit da0654d

Browse files
committed
workflows: switch small jobs to ubuntu-slim
Save some resources. In principle the setup jobs could switch too, but find-container-digest uses skopeo which isn't installed in that image. Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
1 parent 74de859 commit da0654d

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/event-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
issue-event:
1717
name: Process
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-slim
1919
outputs:
2020
bot-user: ${{ steps.bot-user.outputs.username }}
2121
steps:

.github/workflows/event-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717
pr-event:
1818
name: Process
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-slim
2020
steps:
2121
- name: Get bot username
2222
id: bot-user

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
pre-commit:
1515
name: Rerun pre-commit checks
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-slim
1717
steps:
1818
- name: Check out repo
1919
uses: actions/checkout@v5
@@ -30,6 +30,7 @@ jobs:
3030
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
3131
- name: Run pre-commit hooks
3232
run: pre-commit run -a --show-diff-on-failure --color=always
33+
3334
setup:
3435
name: Set up
3536
runs-on: ubuntu-latest

.github/workflows/pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
pre-commit:
1414
name: Rerun pre-commit checks
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-slim
1616
steps:
1717
- name: Check out repo
1818
uses: actions/checkout@v5
@@ -29,6 +29,7 @@ jobs:
2929
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
3030
- name: Run pre-commit hooks
3131
run: pre-commit run -a --show-diff-on-failure --color=always
32+
3233
setup:
3334
name: Set up
3435
runs-on: ubuntu-latest

.github/workflows/update-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ env:
2424
jobs:
2525
update:
2626
name: Update
27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-slim
2828
steps:
2929
- name: Update Python
3030
uses: actions/setup-python@v6

0 commit comments

Comments
 (0)