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