Skip to content

Commit 5707b26

Browse files
authored
Merge pull request GitoxideLabs#2386 from EliahKagan/run-ci/slim
Use `ubuntu-slim` runner where `ubuntu-latest` confers no benefit
2 parents f8517be + 531e1b9 commit 5707b26

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ jobs:
592592

593593
# Check that all `actions/checkout` in CI jobs have `persist-credentials: false`.
594594
check-no-persist-credentials:
595-
runs-on: ubuntu-latest
595+
runs-on: ubuntu-slim
596596

597597
env:
598598
GLOB: .github/workflows/*.@(yaml|yml)
@@ -621,7 +621,7 @@ jobs:
621621
# dependencies of the `tests-pass` job below, so that whenever a job is
622622
# added, a decision is made about whether it must pass for PRs to merge.
623623
check-blocking:
624-
runs-on: ubuntu-latest
624+
runs-on: ubuntu-slim
625625

626626
env:
627627
# List all jobs that are intended NOT to block PR auto-merge here.
@@ -658,6 +658,8 @@ jobs:
658658
tests-pass:
659659
name: Tests pass
660660

661+
permissions: {}
662+
661663
needs:
662664
- msrv
663665
- msrv-badge
@@ -675,7 +677,7 @@ jobs:
675677

676678
if: always() # Always run even if dependencies fail.
677679

678-
runs-on: ubuntu-latest
680+
runs-on: ubuntu-slim
679681

680682
steps:
681683
- name: Fail if ANY dependency has failed or cancelled

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defaults:
2929
jobs:
3030
# Create a draft release, initially with no binary assets attached.
3131
create-release:
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-slim
3333

3434
permissions:
3535
contents: write # Allows the use of `gh release create`.
@@ -373,7 +373,7 @@ jobs:
373373

374374
# Check for some problems, consolidate checksum files into one, and mark the release non-draft.
375375
publish-release:
376-
runs-on: ubuntu-latest
376+
runs-on: ubuntu-slim
377377

378378
needs: [ create-release, build-release, build-macos-universal2-release ]
379379

@@ -442,7 +442,7 @@ jobs:
442442

443443
# Comment in a locked discussion that notifies about only `gitoxide` (e.g. not `gix-*`) releases.
444444
announce-release:
445-
runs-on: ubuntu-latest
445+
runs-on: ubuntu-slim
446446

447447
needs: [ create-release, publish-release ]
448448

0 commit comments

Comments
 (0)