CI: Use ubuntu-22.04 rather than ubuntu-latest (ubuntu-20.04)
Use ubuntu-22.04 for the CI tests rather than ubuntu-latest, which is currently ubuntu-20.04.master
parent
ebfe25d80a
commit
8e9d614622
|
@ -845,7 +845,7 @@ permissions:
|
|||
jobs:
|
||||
autobump:
|
||||
if: github.repository == 'Homebrew/homebrew-core'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/homebrew/ubuntu22.04:master
|
||||
steps:
|
||||
|
|
|
@ -19,7 +19,7 @@ permissions:
|
|||
jobs:
|
||||
autopublish:
|
||||
if: github.repository == 'Homebrew/homebrew-core'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Set up Homebrew
|
||||
id: set-up-homebrew
|
||||
|
|
|
@ -31,7 +31,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
runners: ${{steps.runner-matrix.outputs.result}}
|
||||
steps:
|
||||
|
@ -221,7 +221,7 @@ jobs:
|
|||
bot_body: ":x: Bottle request for ${{github.event.inputs.formula}} [failed](${{github.event.repository.html_url}}/actions/runs/${{github.run_id}})."
|
||||
bot: BrewTestBot
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
needs: bottle
|
||||
if: github.event.inputs.upload
|
||||
env:
|
||||
|
|
|
@ -32,7 +32,7 @@ env:
|
|||
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/homebrew/ubuntu22.04:master
|
||||
outputs:
|
||||
|
@ -168,7 +168,7 @@ jobs:
|
|||
issues: write # for Homebrew/actions/post-comment
|
||||
contents: write # for Homebrew/actions/git-try-push
|
||||
packages: write # for brew pr-upload
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
needs: bottle
|
||||
if: github.event.inputs.upload
|
||||
env:
|
||||
|
|
|
@ -23,7 +23,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
upload:
|
||||
runs-on: ${{github.event.inputs.self_hosted == 'true' && 'linux-self-hosted-1' || 'ubuntu-latest'}}
|
||||
runs-on: ${{github.event.inputs.self_hosted == 'true' && 'linux-self-hosted-1' || 'ubuntu-22.04'}}
|
||||
container: ${{github.event.inputs.self_hosted == 'true' && fromJson('{"image":"ghcr.io/homebrew/ubuntu22.04:master","options":"--user=linuxbrew -e GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED"}') || ''}}
|
||||
steps:
|
||||
- name: Post comment once started
|
||||
|
|
|
@ -16,7 +16,7 @@ permissions:
|
|||
jobs:
|
||||
recreate:
|
||||
if: github.repository == 'Homebrew/homebrew-core'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
# TODO agree on one label for all runners
|
||||
RUNNER_LABEL: TODO
|
||||
|
|
|
@ -18,7 +18,7 @@ permissions:
|
|||
jobs:
|
||||
remove-disabled-formulae:
|
||||
if: startsWith(github.repository, 'Homebrew/')
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Set up Homebrew
|
||||
id: set-up-homebrew
|
||||
|
|
|
@ -22,7 +22,7 @@ permissions:
|
|||
jobs:
|
||||
tap_syntax:
|
||||
if: github.repository == 'Homebrew/homebrew-core'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/homebrew/ubuntu22.04:master
|
||||
env:
|
||||
|
@ -46,7 +46,7 @@ jobs:
|
|||
permissions:
|
||||
pull-requests: read
|
||||
if: github.event_name == 'pull_request' && github.repository == 'Homebrew/homebrew-core'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
needs: tap_syntax
|
||||
outputs:
|
||||
syntax-only: ${{ steps.check-labels.outputs.syntax-only }}
|
||||
|
@ -85,7 +85,7 @@ jobs:
|
|||
if (label_names.includes('CI-linux-self-hosted')) {
|
||||
core.setOutput('linux-runner', 'linux-self-hosted-1')
|
||||
} else {
|
||||
core.setOutput('linux-runner', 'ubuntu-latest')
|
||||
core.setOutput('linux-runner', 'ubuntu-22.04')
|
||||
}
|
||||
|
||||
if (label_names.includes('CI-no-fail-fast')) {
|
||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
contains(github.event.pull_request.labels.*.name, 'stale')
|
||||
)
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Mark/Close Stale Issues and Pull Requests
|
||||
uses: actions/stale@v5
|
||||
|
@ -55,7 +55,7 @@ jobs:
|
|||
contains(github.event.pull_request.labels.*.name, 'stale')
|
||||
)
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests
|
||||
uses: actions/stale@v5
|
||||
|
@ -72,7 +72,7 @@ jobs:
|
|||
|
||||
lock-threads:
|
||||
if: startsWith(github.repository, 'Homebrew/') && github.event_name != 'issue_comment'
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Lock Outdated Threads
|
||||
uses: dessant/lock-threads@e460dfeb36e731f3aeb214be6b0c9a9d9a67eda6
|
||||
|
|
|
@ -11,7 +11,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
triage:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Check commit format
|
||||
uses: Homebrew/actions/check-commit-format@master
|
||||
|
|
|
@ -29,7 +29,7 @@ module Homebrew
|
|||
linux_runner = if timeout > 360
|
||||
"linux-self-hosted-1"
|
||||
else
|
||||
"ubuntu-latest"
|
||||
"ubuntu-22.04"
|
||||
end
|
||||
linux_runner_spec = {
|
||||
runner: linux_runner,
|
||||
|
|
Loading…
Reference in New Issue