Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep CI rework with few fix #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Deep CI rework with few fix #188

wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jan 17, 2025

Deep CI rework with few fix

CI

  • Add few more CI workflows
    • Add CMake and Bazel workflows to get badges
    • Add MacOS (amd64 and M1) and Windows (amd64) jobs
    • Add C++ 14, 17 and 20 setup bor bazel jobs

Code

Dependencies

  • Bump protobuf to v29.2 everywhere
    • previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

Bazel

  • bazelrc: Fix windows (MSVC) default build flags
  • bazelrc: support user configuration override
  • Fix the workspace mode when using bazel 8

CMake

  • declare pybind_extension as MODULE to fix macOS XCode build jobs
  • fix Python3 usage
    note: on manylinux images, Python Libraries are NOT available, only
    headers since python native modules are loaded by the python interpreter and
    must not be linked to python.
    ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1

@copybara-service copybara-service bot force-pushed the cl/716347968 branch 3 times, most recently from 504f074 to 6c5cc57 Compare January 17, 2025 10:53
@copybara-service copybara-service bot changed the title deep CI rework Deep CI rework with few fix Jan 17, 2025
@copybara-service copybara-service bot force-pushed the cl/716347968 branch 11 times, most recently from 89867c4 to add6620 Compare January 17, 2025 15:58
## CI
* Add few more CI workflows
  * Add CMake and Bazel workflows to get badges
  * Add MacOS (amd64 and M1) and Windows (amd64) jobs
  * Add C++ 14, 17 and 20 setup bor bazel jobs

## Code
* Fix C++14 build:
  * using `absl::optional` and `absl::variant` (#184)
  * use of `absl::string_view` (fix cl/715199813 #185 regression)
* Add pybind_abseil deps for tests/
 note: Protobuf v29 (as well as abseil-cpp 20240722) still support C++14 and will drop it in v30
* Fix Windows MSVC compilation

## Dependencies
* Bump protobuf to v29.2 everywhere
  * previously: 23.1 (bazel module), 25.3 (bazel workspace), 23.3 (cmake)

## Bazel
* bazelrc: Fix windows (MSVC) default build flags
* bazelrc: support user configuration override
* Fix the workspace mode when using bazel 8

## CMake
* declare `pybind_extension` as `MODULE` to fix macOS XCode build jobs
* fix Python3 usage
note: on manylinux images, Python Libraries are NOT available, only
headers since python native modules are loaded by the python interpreter and
must not be linked to python.
ref: https://peps.python.org/pep-0513/#libpythonx-y-so-1
PiperOrigin-RevId: 716347968
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant