Merge pull request #13733 from sjackman/sj/ubuntu22.04
Update LINUX_CI_OS_VERSION to Ubuntu 22.04
This commit is contained in:
commit
0334658633
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@ -11,7 +11,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
actions: read
|
actions: read
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@ -14,7 +14,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
ubuntu:
|
ubuntu:
|
||||||
if: startsWith(github.repository, 'Homebrew/')
|
if: startsWith(github.repository, 'Homebrew/')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@ -21,7 +21,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
updates:
|
updates:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
if: github.repository == 'Homebrew/brew'
|
if: github.repository == 'Homebrew/brew'
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Homebrew
|
- name: Setup Homebrew
|
||||||
|
|||||||
2
.github/workflows/spdx.yml
vendored
2
.github/workflows/spdx.yml
vendored
@ -15,7 +15,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
spdx:
|
spdx:
|
||||||
if: github.repository == 'Homebrew/brew'
|
if: github.repository == 'Homebrew/brew'
|
||||||
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
.github/workflows/tests.yml
vendored
22
.github/workflows/tests.yml
vendored
@ -20,7 +20,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
syntax:
|
syntax:
|
||||||
if: github.repository == 'Homebrew/brew'
|
if: github.repository == 'Homebrew/brew'
|
||||||
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
|
||||||
@ -52,7 +52,7 @@ jobs:
|
|||||||
name: tap syntax (Linux)
|
name: tap syntax (Linux)
|
||||||
needs: syntax
|
needs: syntax
|
||||||
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
|
||||||
@ -146,7 +146,7 @@ jobs:
|
|||||||
|
|
||||||
vendored-gems:
|
vendored-gems:
|
||||||
name: vendored gems (Linux)
|
name: vendored gems (Linux)
|
||||||
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
|
||||||
@ -167,31 +167,31 @@ jobs:
|
|||||||
|
|
||||||
docker:
|
docker:
|
||||||
needs: syntax
|
needs: syntax
|
||||||
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
|
||||||
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 }}
|
||||||
needs: syntax
|
needs: syntax
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -244,7 +244,7 @@ jobs:
|
|||||||
|
|
||||||
test-default-formula-linux:
|
test-default-formula-linux:
|
||||||
name: test default formula (Linux)
|
name: test default formula (Linux)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
HOMEBREW_BOOTSNAP: 1
|
HOMEBREW_BOOTSNAP: 1
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
6
.github/workflows/triage-issues.yml
vendored
6
.github/workflows/triage-issues.yml
vendored
@ -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
|
||||||
|
|||||||
2
.github/workflows/triage.yml
vendored
2
.github/workflows/triage.yml
vendored
@ -18,7 +18,7 @@ concurrency: triage-${{ github.head_ref }}
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
review:
|
review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
if: startsWith(github.repository, 'Homebrew/')
|
if: startsWith(github.repository, 'Homebrew/')
|
||||||
steps:
|
steps:
|
||||||
- name: Re-run this workflow
|
- name: Re-run this workflow
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -52,7 +52,7 @@ describe CompilerSelector do
|
|||||||
|
|
||||||
it "returns gcc-5 if gcc formula offers gcc-5 on linux", :needs_linux do
|
it "returns gcc-5 if gcc formula offers gcc-5 on linux", :needs_linux do
|
||||||
software_spec.fails_with(:clang)
|
software_spec.fails_with(:clang)
|
||||||
allow(Formulary).to receive(:factory).with("gcc@5").and_return(double(version: Version.new("5.0")))
|
allow(Formulary).to receive(:factory).with("gcc@11").and_return(double(version: Version.new("5.0")))
|
||||||
expect(selector.compiler).to eq("gcc-5")
|
expect(selector.compiler).to eq("gcc-5")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -60,14 +60,14 @@ describe CompilerSelector do
|
|||||||
software_spec.fails_with(:clang)
|
software_spec.fails_with(:clang)
|
||||||
software_spec.fails_with(gcc: "5")
|
software_spec.fails_with(gcc: "5")
|
||||||
software_spec.fails_with(gcc: "7")
|
software_spec.fails_with(gcc: "7")
|
||||||
allow(Formulary).to receive(:factory).with("gcc@5").and_return(double(version: Version.new("5.0")))
|
allow(Formulary).to receive(:factory).with("gcc@11").and_return(double(version: Version.new("5.0")))
|
||||||
expect(selector.compiler).to eq("gcc-6")
|
expect(selector.compiler).to eq("gcc-6")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns gcc-7 if gcc formula offers gcc-5 and fails with gcc <= 6 on linux", :needs_linux do
|
it "returns gcc-7 if gcc formula offers gcc-5 and fails with gcc <= 6 on linux", :needs_linux do
|
||||||
software_spec.fails_with(:clang)
|
software_spec.fails_with(:clang)
|
||||||
software_spec.fails_with(:gcc) { version "6" }
|
software_spec.fails_with(:gcc) { version "6" }
|
||||||
allow(Formulary).to receive(:factory).with("gcc@5").and_return(double(version: Version.new("5.0")))
|
allow(Formulary).to receive(:factory).with("gcc@11").and_return(double(version: Version.new("5.0")))
|
||||||
expect(selector.compiler).to eq("gcc-7")
|
expect(selector.compiler).to eq("gcc-7")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ describe FormulaInstaller do
|
|||||||
|
|
||||||
stub_formula_loader formula
|
stub_formula_loader formula
|
||||||
stub_formula_loader formula("gcc") { url "gcc-1.0" }
|
stub_formula_loader formula("gcc") { url "gcc-1.0" }
|
||||||
stub_formula_loader formula("gcc@5") { url "gcc-5.0" }
|
stub_formula_loader formula("gcc@11") { url "gcc-11.0" }
|
||||||
|
|
||||||
fi = FormulaInstaller.new(formula)
|
fi = FormulaInstaller.new(formula)
|
||||||
fi.fetch
|
fi.fetch
|
||||||
|
|||||||
@ -142,7 +142,7 @@ describe Formulary do
|
|||||||
before do
|
before do
|
||||||
allow(described_class).to receive(:loader_for).and_call_original
|
allow(described_class).to receive(:loader_for).and_call_original
|
||||||
stub_formula_loader formula("gcc") { url "gcc-1.0" }
|
stub_formula_loader formula("gcc") { url "gcc-1.0" }
|
||||||
stub_formula_loader formula("gcc@5") { url "gcc-5.0" }
|
stub_formula_loader formula("gcc@11") { url "gcc-11.0" }
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:installed_formula) { described_class.factory(formula_path) }
|
let(:installed_formula) { described_class.factory(formula_path) }
|
||||||
|
|||||||
@ -6,5 +6,12 @@ require_relative "shared_examples"
|
|||||||
describe UnpackStrategy::Zstd do
|
describe UnpackStrategy::Zstd do
|
||||||
let(:path) { TEST_FIXTURE_DIR/"cask/container.tar.zst" }
|
let(:path) { TEST_FIXTURE_DIR/"cask/container.tar.zst" }
|
||||||
|
|
||||||
include_examples "UnpackStrategy::detect"
|
it "is correctly detected" do
|
||||||
|
# UnpackStrategy.detect(path) for a .tar.XXX file returns either UnpackStrategy::Tar if
|
||||||
|
# the host's tar is able to extract that compressed file or UnpackStrategy::XXX otherwise,
|
||||||
|
# such as UnpackStrategy::Zstd. On macOS UnpackStrategy.detect("container.tar.zst")
|
||||||
|
# returns UnpackStrategy::Zstd, and on ubuntu-22.04 it returns UnpackStrategy::Tar,
|
||||||
|
# because the host's version of tar is recent enough and zstd is installed.
|
||||||
|
expect(UnpackStrategy.detect(path)).to(be_a(described_class).or(be_a(UnpackStrategy::Tar)))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user