Upgrade upb GHA to large runners

PiperOrigin-RevId: 501619842
pull/13171/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent e41a2d7ba0
commit 81eebe3fdd
  1. 18
      .github/workflows/bazel_tests.yml
  2. 2
      .github/workflows/cifuzz.yml
  3. 2
      .github/workflows/clang_format.yml
  4. 2
      .github/workflows/generate_files.yml
  5. 24
      .github/workflows/python_tests.yml

@ -22,17 +22,17 @@ jobs:
fail-fast: false # Don't cancel all jobs if one fails.
matrix:
include:
- { NAME: "Fastbuild", BAZEL: bazel, CC: clang, os: ubuntu-20.04, flags: "" }
- { NAME: "Optmized", BAZEL: bazel, CC: clang, os: ubuntu-20.04, flags: "-c opt" } # Some warnings only fire with -c opt
- { NAME: "Fastbuild", BAZEL: bazel, CC: clang, os: ubuntu-20-large, flags: "" }
- { NAME: "Optmized", BAZEL: bazel, CC: clang, os: ubuntu-20-large, flags: "-c opt" } # Some warnings only fire with -c opt
- { NAME: "GCC Optimized", BAZEL: bazel, CC: gcc-12, os: ubuntu-22.04, flags: "-c opt" }
- { NAME: "FastTable", BAZEL: bazel, CC: clang, os: ubuntu-20.04, flags: "--//:fasttable_enabled=true -- -cmake:test_generated_files" }
- { NAME: "ASAN", BAZEL: bazel, CC: clang, os: ubuntu-20.04, flags: "--config=asan -c dbg -- -benchmarks:benchmark -python/..." }
- { NAME: "UBSAN", BAZEL: bazel, CC: clang, os: ubuntu-20.04, flags: "--config=ubsan -c dbg -- -benchmarks:benchmark -python/... -lua/...", install: "libunwind-dev" }
- { NAME: "32-bit", BAZEL: bazel, CC: clang, os: ubuntu-20.04, flags: "--copt=-m32 --linkopt=-m32 -- -... benchmarks:benchmark ", install: "g++-multilib" }
- { NAME: "FastTable", BAZEL: bazel, CC: clang, os: ubuntu-20-large, flags: "--//:fasttable_enabled=true -- -cmake:test_generated_files" }
- { NAME: "ASAN", BAZEL: bazel, CC: clang, os: ubuntu-20-large, flags: "--config=asan -c dbg -- -benchmarks:benchmark -python/..." }
- { NAME: "UBSAN", BAZEL: bazel, CC: clang, os: ubuntu-20-large, flags: "--config=ubsan -c dbg -- -benchmarks:benchmark -python/... -lua/...", install: "libunwind-dev" }
- { NAME: "32-bit", BAZEL: bazel, CC: clang, os: ubuntu-20-large, flags: "--copt=-m32 --linkopt=-m32 -- -... benchmarks:benchmark ", install: "g++-multilib" }
- { NAME: "macOS", BAZEL: bazel, CC: clang, os: macos-11, flags: "" }
# We support two Bazel versions back per https://opensource.google/documentation/policies/cplusplus-support
- { NAME: "Bazel 4.1.0", BAZEL: bazel-4.1.0-linux-x86_64, CC: clang, os: ubuntu-20.04, flags: "" }
- { NAME: "Bazel 5.3.0", BAZEL: bazel-5.3.0-linux-x86_64, CC: clang, os: ubuntu-20.04, flags: "" }
- { NAME: "Bazel 4.1.0", BAZEL: bazel-4.1.0-linux-x86_64, CC: clang, os: ubuntu-20-large, flags: "" }
- { NAME: "Bazel 5.3.0", BAZEL: bazel-5.3.0-linux-x86_64, CC: clang, os: ubuntu-20-large, flags: "" }
name: ${{ matrix.NAME }}
@ -74,7 +74,7 @@ jobs:
run: cd ${{ github.workspace }} && source /tmp/venv/bin/activate && CC=${{ matrix.CC }} ${{ matrix.BAZEL }} test --test_output=errors $BAZEL_CACHE $BAZEL_CACHE_AUTH ... ${{ matrix.flags }}
no-python:
runs-on: ubuntu-20.04
runs-on: ubuntu-20-large
env:
BAZEL_CACHE: --remote_cache=https://storage.googleapis.com/protobuf-bazel-cache/upb

@ -2,7 +2,7 @@ name: CIFuzz
on: [pull_request]
jobs:
Fuzzing:
runs-on: ubuntu-latest
runs-on: ubuntu-22-large
strategy:
fail-fast: false
matrix:

@ -13,7 +13,7 @@ on:
jobs:
check_clang_format:
runs-on: ubuntu-20.04
runs-on: ubuntu-20-large
steps:
- uses: actions/checkout@v2
- name: Run ClangFormat

@ -10,7 +10,7 @@ on:
jobs:
generate:
if: github.repository == 'protocolbuffers/upb'
runs-on: ubuntu-latest
runs-on: ubuntu-22-large
steps:
- uses: actions/checkout@v3

@ -14,7 +14,7 @@ on:
jobs:
build_wheels:
name: Build Wheels
runs-on: ubuntu-latest
runs-on: ubuntu-large
if: ${{ github.event.pull_request.head.repo.full_name == 'protocolbuffers/upb' }}
env:
DOCKER_IMAGE: gcr.io/protobuf-build/bazel/linux@sha256:9dba7773926bb6dce839de098948055c9e80260d7470a7fefb94b6a4fed363ba
@ -51,20 +51,20 @@ jobs:
# Linux and Mac use the limited API, so all Python versions will use a single wheel.
# As a result we can just test the oldest and newest supported Python versions and assume
# this gives us sufficient test coverage.
- { os: ubuntu-18.04, python-version: "3.7", architecture: x64 }
- { os: ubuntu-18-large, python-version: "3.7", architecture: x64 }
- { os: macos-11, python-version: "3.7", architecture: x64 }
- { os: ubuntu-20.04, python-version: "3.10", architecture: x64 }
- { os: ubuntu-20-large, python-version: "3.10", architecture: x64 }
- { os: macos-12, python-version: "3.10", architecture: x64 }
# Windows uses the full API up until Python 3.10, so each of these
# jobs tests a distinct binary wheel.
- { os: windows-2019, python-version: "3.7", architecture: x86 }
- { os: windows-2019, python-version: "3.8", architecture: x86 }
- { os: windows-2019, python-version: "3.9", architecture: x86 }
- { os: windows-2019, python-version: "3.10", architecture: x86 }
- { os: windows-2019, python-version: "3.7", architecture: x64 }
- { os: windows-2019, python-version: "3.8", architecture: x64 }
- { os: windows-2019, python-version: "3.9", architecture: x64 }
- { os: windows-2019, python-version: "3.10", architecture: x64 }
- { os: windows-2019-large, python-version: "3.7", architecture: x86 }
- { os: windows-2019-large, python-version: "3.8", architecture: x86 }
- { os: windows-2019-large, python-version: "3.9", architecture: x86 }
- { os: windows-2019-large, python-version: "3.10", architecture: x86 }
- { os: windows-2019-large, python-version: "3.7", architecture: x64 }
- { os: windows-2019-large, python-version: "3.8", architecture: x64 }
- { os: windows-2019-large, python-version: "3.9", architecture: x64 }
- { os: windows-2019-large, python-version: "3.10", architecture: x64 }
runs-on: ${{ matrix.os }}
defaults:
run:
@ -111,7 +111,7 @@ jobs:
fail-fast: false # Don't cancel all jobs if one fails.
matrix:
python-version: ["3.7", "3.10"]
runs-on: ubuntu-latest
runs-on: ubuntu-large
steps:
- name: Download Wheels

Loading…
Cancel
Save