Update LINUX_CI_OS_VERSION and related constants

- Change `LINUX_CI_OS_VERSION` from `Ubuntu 16.04` to `Ubuntu 22.04`
- Change `LINUX_GLIBC_CI_VERSION` from `2.23` to `2.35`
- Change `LINUX_GCC_CI_VERSION` from `5.0` to `11.0`
- Change `LINUX_PREFERRED_GCC_FORMULA` from `gcc@5` to `gcc@11`
- Build the Docker image `ghcr.io/homebrew/ubuntu22.04:master`
This commit is contained in:
Shaun Jackman 2022-08-21 23:13:44 -07:00 committed by Mike McQuaid
parent db921d88d9
commit b01e0abcf8
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 10 additions and 13 deletions

View File

@ -174,19 +174,19 @@ jobs:
uses: Homebrew/actions/setup-homebrew@master uses: Homebrew/actions/setup-homebrew@master
- name: Build Docker image - name: Build Docker image
run: docker build -t brew --build-arg=version=16.04 . run: docker build -t brew --build-arg=version=22.04 .
- name: Deploy the Docker image to GitHub Packages and Docker Hub - name: Deploy the Docker image to GitHub Packages and Docker Hub
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |
echo ${{secrets.HOMEBREW_BREW_GITHUB_PACKAGES_TOKEN}} | echo ${{secrets.HOMEBREW_BREW_GITHUB_PACKAGES_TOKEN}} |
docker login ghcr.io -u BrewTestBot --password-stdin docker login ghcr.io -u BrewTestBot --password-stdin
docker tag brew "ghcr.io/homebrew/ubuntu16.04:master" docker tag brew "ghcr.io/homebrew/ubuntu22.04:master"
docker push "ghcr.io/homebrew/ubuntu16.04:master" docker push "ghcr.io/homebrew/ubuntu22.04:master"
echo ${{secrets.HOMEBREW_BREW_DOCKER_TOKEN}} | echo ${{secrets.HOMEBREW_BREW_DOCKER_TOKEN}} |
docker login -u brewtestbot --password-stdin docker login -u brewtestbot --password-stdin
docker tag brew "homebrew/ubuntu16.04:master" docker tag brew "homebrew/ubuntu22.04:master"
docker push "homebrew/ubuntu16.04:master" docker push "homebrew/ubuntu22.04:master"
tests: tests:
name: ${{ matrix.name }} name: ${{ matrix.name }}

View File

@ -45,15 +45,12 @@ module OS
::OS_VERSION = ENV.fetch("HOMEBREW_OS_VERSION").freeze ::OS_VERSION = ENV.fetch("HOMEBREW_OS_VERSION").freeze
LINUX_CI_OS_VERSION = "Ubuntu 16.04" # See Linux-CI.md
LINUX_GLIBC_CI_VERSION = "2.23" LINUX_CI_OS_VERSION = "Ubuntu 22.04"
LINUX_GCC_CI_VERSION = "5.0" LINUX_GLIBC_CI_VERSION = "2.35"
LINUX_PREFERRED_GCC_FORMULA = "gcc@5"
# Ubuntu 22.04 (see Linux-CI.md)
LINUX_GLIBC_NEXT_CI_VERSION = "2.35" LINUX_GLIBC_NEXT_CI_VERSION = "2.35"
# LINUX_GCC_CI_VERSION = "11.0" LINUX_GCC_CI_VERSION = "11.0"
# LINUX_PREFERRED_GCC_FORMULA = "gcc@11" LINUX_PREFERRED_GCC_FORMULA = "gcc@11"
if OS.mac? if OS.mac?
require "os/mac" require "os/mac"