Skip to content

register_status_bindings: Remove redundant ABSL_USES_STD_STRING_VIEW check #558

register_status_bindings: Remove redundant ABSL_USES_STD_STRING_VIEW check

register_status_bindings: Remove redundant ABSL_USES_STD_STRING_VIEW check #558

# ref: https://github.com/actions/runner-images
name: amd64 Linux CMake
# Controls when the action will run.
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
# Each run on master gets its own group, so that master runs are never
# cancelled and every commit gets a CI result. Setting
# cancel-in-progress to false would not suffice: a new run still cancels
# a pending run in the same group.
group: ${{github.workflow}}-${{github.ref == 'refs/heads/master' && github.run_id || github.ref}}
cancel-in-progress: true
# Building using the github runner environement directly.
jobs:
native:
strategy:
matrix:
# Varies the build system from the origin in amd64_linux_bazel.yml
# (ubuntu-26.04, clang-22, C++17, Python 3.12). Compiler, C++ standard,
# and Python version variations are already tested there, so this
# workflow only varies CMake-specific settings: CMake version,
# generator, and build type.
include:
- {runner: ubuntu-26.04, cc: clang-22, cxx: clang++-22, generator: Ninja, config: Release, cpp: 17, python: '3.12'}
# Oldest supported CMake, installed via pip since the runner image
# ships a newer CMake, and Unix Makefiles generator.
- {runner: ubuntu-26.04, cc: clang-22, cxx: clang++-22, cmake_version: '3.22.*', generator: Unix Makefiles, config: Release, cpp: 17, python: '3.12'}
- {runner: ubuntu-26.04, cc: clang-22, cxx: clang++-22, generator: Ninja, config: Debug, cpp: 17, python: '3.12'}
fail-fast: false
name: ${{matrix.runner}}•${{matrix.cc}}•CMake${{matrix.cmake_version && format(' {0}', matrix.cmake_version) || ''}}(${{matrix.generator}},${{matrix.config}})•C++${{matrix.cpp}}•Py${{matrix.python}}
runs-on: ${{matrix.runner}}
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}
steps:
- uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: ${{matrix.python}}
- name: Check Python
run: |
python --version
python -m platform
- name: Install Python requirements
run: python -m pip install --upgrade -r $(python -c 'import sys; print("./pybind11_abseil/requirements/requirements_lock_%d_%d.txt" % (sys.version_info[:2]))')
- name: Install CMake ${{matrix.cmake_version}}
if: matrix.cmake_version
run: python -m pip install "cmake==${{matrix.cmake_version}}"
- name: Install Ninja
if: matrix.generator == 'Ninja'
run: |
sudo apt-get update
sudo apt-get install ninja-build
- name: Check CMake
run: cmake --version
- name: Configure
run: >
cmake -S. -Bbuild
-G "${{matrix.generator}}"
-DCMAKE_BUILD_TYPE=${{matrix.config}}
-DCMAKE_CXX_STANDARD=${{matrix.cpp}}
-DCMAKE_INSTALL_PREFIX=install
- name: Build
run: >
cmake --build build
--config ${{matrix.config}}
--target all
-v -j2
- name: Test
run: >
CTEST_OUTPUT_ON_FAILURE=1
cmake --build build
--config ${{matrix.config}}
--target test
-v
- name: Install
run: >
cmake --build build
--config ${{matrix.config}}
--target install
-v
amd64_linux_cmake:
runs-on: ubuntu-latest
needs: native
steps:
- uses: actions/checkout@v7