Skip to content

Commit

Permalink
Merge pull request #196774 from Homebrew/ci
Browse files Browse the repository at this point in the history
ci: use ubuntu-latest
  • Loading branch information
iMichka authored Nov 28, 2024
2 parents 09e813b + d657da2 commit 94338ad
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autobump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defaults:
jobs:
autobump:
if: github.repository_owner == 'Homebrew'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ concurrency:
jobs:
determine-runners:
if: github.repository_owner == 'Homebrew'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dispatch-build-bottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ permissions:

jobs:
prepare:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dispatch-rebottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ env:

jobs:
setup:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
pull-requests: write # for gh pr
attestations: write # for actions/attest-build-provenance
id-token: write # for actions/attest-build-provenance
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: bottle
if: inputs.upload
container:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-commit-bottles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ jobs:
fromJson(needs.check.outputs.requires_merge) &&
fromJson(needs.check.outputs.bottles) &&
!fromJson(needs.check.outputs.replace)
runs-on: ${{inputs.large_runner && 'homebrew-large-bottle-upload' || 'ubuntu-22.04'}}
runs-on: ${{inputs.large_runner && 'homebrew-large-bottle-upload' || 'ubuntu-latest'}}
container:
image: ghcr.io/homebrew/ubuntu22.04:master
volumes:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
jobs:
create_matrix:
if: startsWith( github.repository, 'Homebrew/' )
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/check-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = async ({github, context, core}, formulae_detect, dependent_test
return
}

var linux_runner = 'ubuntu-22.04'
var linux_runner = 'ubuntu-latest'
if (label_names.includes(`CI-linux-self-hosted${deps_suffix}`)) {
linux_runner = 'linux-self-hosted-1'
} else if (label_names.includes(`CI-linux-large-runner${deps_suffix}`)) {
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
matrix:
stable: [false, true]
name: tap_syntax${{ matrix.stable && ' (stable)' || '' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.stable }}
container:
image: ghcr.io/homebrew/ubuntu22.04:${{ matrix.stable && 'latest' || 'master'}}
Expand All @@ -65,7 +65,7 @@ jobs:

formulae_detect:
if: github.repository_owner == 'Homebrew' && github.event_name != 'push'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
permissions:
pull-requests: read
if: github.repository_owner == 'Homebrew' && github.event_name == 'pull_request'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: formulae_detect
outputs:
syntax-only: ${{ steps.check-labels.outputs.syntax-only }}
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
if: >
github.event_name == 'pull_request' &&
!fromJson(needs.setup_tests.outputs.syntax-only)
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
permissions:
pull-requests: read
if: github.repository_owner == 'Homebrew' && github.event_name == 'pull_request'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [setup_tests, formulae_detect]
outputs:
syntax-only: ${{ steps.check-labels.outputs.syntax-only }}
Expand Down Expand Up @@ -296,7 +296,7 @@ jobs:
github.event_name == 'pull_request' &&
!fromJson(needs.setup_dep_tests.outputs.syntax-only) &&
fromJson(needs.setup_dep_tests.outputs.test-dependents)
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/homebrew/ubuntu22.04:master
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
close: true

triage:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
Expand Down
2 changes: 1 addition & 1 deletion cmd/determine-rebottle-runners.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def run
linux_runner = if timeout > 360
"linux-self-hosted-1"
else
"ubuntu-22.04"
"ubuntu-latest"
end
linux_runner_spec = {
runner: linux_runner,
Expand Down

0 comments on commit 94338ad

Please sign in to comment.