CI: switch to ninja on all jobs

This commit is contained in:
Roman Lebedev 2025-03-12 16:56:09 +03:00
parent 1de7d6aeae
commit dafc6347e2
11 changed files with 35 additions and 5 deletions

View File

@ -4,6 +4,9 @@ on:
push: {}
pull_request: {}
env:
CMAKE_GENERATOR: Ninja
jobs:
build_and_test_default:
name: bazel.${{ matrix.os }}

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]
env:
CMAKE_GENERATOR: Ninja
jobs:
job:
name: ${{ matrix.os }}.min-cmake

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]
env:
CMAKE_GENERATOR: Ninja
jobs:
job:
# TODO(dominic): Extend this to include compiler and set through env: CC/CXX.

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]
env:
CMAKE_GENERATOR: Ninja
jobs:
# TODO: add 32-bit builds (g++ and clang++) for ubuntu
# (requires g++-multilib and libc6:i386)
@ -23,6 +26,10 @@ jobs:
lib: ['shared', 'static']
steps:
- name: Install dependencies (macos)
if: runner.os == 'macOS'
run: brew install ninja
- uses: actions/checkout@v4
- name: build

View File

@ -3,6 +3,9 @@ on:
push: {}
pull_request: {}
env:
CMAKE_GENERATOR: Ninja
jobs:
job:
name: check-clang-format

View File

@ -4,6 +4,9 @@ on:
push: {}
pull_request: {}
env:
CMAKE_GENERATOR: Ninja
jobs:
job:
name: run-clang-tidy

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]
env:
CMAKE_GENERATOR: Ninja
jobs:
build-and-deploy:
name: Build HTML documentation

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]
env:
CMAKE_GENERATOR: Ninja
jobs:
pre-commit:
runs-on: ubuntu-latest

View File

@ -5,6 +5,7 @@ on:
pull_request: {}
env:
CMAKE_GENERATOR: Ninja
UBSAN_OPTIONS: "print_stacktrace=1"
jobs:
@ -18,11 +19,6 @@ jobs:
sanitizer: ['asan', 'ubsan', 'tsan', 'msan']
steps:
- name: Installing build dependencies
run: |
sudo apt update
sudo apt install ninja-build
- uses: actions/checkout@v4
- name: configure msan env

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]
env:
CMAKE_GENERATOR: Ninja
jobs:
python_bindings:
name: Test GBM Python ${{ matrix.python-version }} bindings on ${{ matrix.os }}

View File

@ -6,6 +6,9 @@ on:
types:
- published
env:
CMAKE_GENERATOR: Ninja
jobs:
build_sdist:
name: Build source distribution