mirror of
https://github.com/google/re2.git
synced 2026-10-28 08:24:42 +08:00
re2: make CI checks also PR checks
Also incorporate BUILD updates from #584 and a few more checks to make Bazel work again.
This commit is contained in:
5 files changed
+14
-8
No files matched your search
@@ -1,5 +1,7 @@
|
||||
name: CI (Bazel)
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main, rsc-testing]
|
||||
permissions:
|
||||
@@ -13,8 +15,6 @@ jobs:
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
# Keep in sync with python.yml.
|
||||
ver: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
||||
env:
|
||||
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: bazel-contrib/setup-bazel@0.15.0
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
name: CI (CMake)
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main, rsc-testing]
|
||||
permissions:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
name: CI
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main, rsc-testing]
|
||||
permissions:
|
||||
|
||||
+6
-6
@@ -11,11 +11,11 @@ module(
|
||||
)
|
||||
|
||||
bazel_dep(name = "platforms", version = "1.0.0")
|
||||
bazel_dep(name = "apple_support", version = "1.23.1")
|
||||
bazel_dep(name = "rules_cc", version = "0.1.4")
|
||||
bazel_dep(name = "abseil-cpp", version = "20250512.1")
|
||||
bazel_dep(name = "rules_python", version = "1.5.1")
|
||||
bazel_dep(name = "pybind11_bazel", version = "2.13.6")
|
||||
bazel_dep(name = "apple_support", version = "1.24.2")
|
||||
bazel_dep(name = "rules_cc", version = "0.2.14")
|
||||
bazel_dep(name = "abseil-cpp", version = "20250814.1")
|
||||
bazel_dep(name = "rules_python", version = "1.7.0")
|
||||
bazel_dep(name = "pybind11_bazel", version = "3.0.0")
|
||||
|
||||
# This is a temporary hack for `x64_x86_windows`.
|
||||
# TODO(junyer): Remove whenever no longer needed.
|
||||
@@ -25,5 +25,5 @@ use_repo(cc_configure, "local_config_cc")
|
||||
# These dependencies will be ignored when the `re2` module is not
|
||||
# the root module (or when `--ignore_dev_dependency` is enabled).
|
||||
bazel_dep(name = "google_benchmark", version = "1.9.4", dev_dependency = True)
|
||||
bazel_dep(name = "googletest", version = "1.17.0", dev_dependency = True)
|
||||
bazel_dep(name = "googletest", version = "1.17.0.bcr.2", dev_dependency = True)
|
||||
bazel_dep(name = "abseil-py", version = "2.1.0", dev_dependency = True)
|
||||
@@ -23,6 +23,8 @@ def generate():
|
||||
with open(f'{mydir}/BUILD.bazel', 'x') as file:
|
||||
file.write(
|
||||
"""\
|
||||
load("@rules_cc//cc:cc_import.bzl", "cc_import")
|
||||
load("@rules_cc//cc:cc_library.bzl", "cc_library")
|
||||
load("@rules_python//python/cc:py_cc_toolchain.bzl", "py_cc_toolchain")
|
||||
load("@rules_python//python:py_runtime.bzl", "py_runtime")
|
||||
load("@rules_python//python:py_runtime_pair.bzl", "py_runtime_pair")
|
||||
|
||||
Reference in new issue
Block a user