Skip to content

Commit dafc634

Browse files
committed
CI: switch to ninja on all jobs
1 parent 1de7d6a commit dafc634

File tree

11 files changed

+35
-5
lines changed

11 files changed

+35
-5
lines changed

.github/workflows/bazel.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push: {}
55
pull_request: {}
66

7+
env:
8+
CMAKE_GENERATOR: Ninja
9+
710
jobs:
811
build_and_test_default:
912
name: bazel.${{ matrix.os }}

.github/workflows/build-and-test-min-cmake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
CMAKE_GENERATOR: Ninja
11+
912
jobs:
1013
job:
1114
name: ${{ matrix.os }}.min-cmake

.github/workflows/build-and-test-perfcounters.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
CMAKE_GENERATOR: Ninja
11+
912
jobs:
1013
job:
1114
# TODO(dominic): Extend this to include compiler and set through env: CC/CXX.

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
CMAKE_GENERATOR: Ninja
11+
912
jobs:
1013
# TODO: add 32-bit builds (g++ and clang++) for ubuntu
1114
# (requires g++-multilib and libc6:i386)
@@ -23,6 +26,10 @@ jobs:
2326
lib: ['shared', 'static']
2427

2528
steps:
29+
- name: Install dependencies (macos)
30+
if: runner.os == 'macOS'
31+
run: brew install ninja
32+
2633
- uses: actions/checkout@v4
2734

2835
- name: build

.github/workflows/clang-format-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push: {}
44
pull_request: {}
55

6+
env:
7+
CMAKE_GENERATOR: Ninja
8+
69
jobs:
710
job:
811
name: check-clang-format

.github/workflows/clang-tidy-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push: {}
55
pull_request: {}
66

7+
env:
8+
CMAKE_GENERATOR: Ninja
9+
710
jobs:
811
job:
912
name: run-clang-tidy

.github/workflows/doxygen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
env:
10+
CMAKE_GENERATOR: Ninja
11+
912
jobs:
1013
build-and-deploy:
1114
name: Build HTML documentation

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
CMAKE_GENERATOR: Ninja
11+
912
jobs:
1013
pre-commit:
1114
runs-on: ubuntu-latest

.github/workflows/sanitizer.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
pull_request: {}
66

77
env:
8+
CMAKE_GENERATOR: Ninja
89
UBSAN_OPTIONS: "print_stacktrace=1"
910

1011
jobs:
@@ -18,11 +19,6 @@ jobs:
1819
sanitizer: ['asan', 'ubsan', 'tsan', 'msan']
1920

2021
steps:
21-
- name: Installing build dependencies
22-
run: |
23-
sudo apt update
24-
sudo apt install ninja-build
25-
2622
- uses: actions/checkout@v4
2723

2824
- name: configure msan env

.github/workflows/test_bindings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
env:
10+
CMAKE_GENERATOR: Ninja
11+
912
jobs:
1013
python_bindings:
1114
name: Test GBM Python ${{ matrix.python-version }} bindings on ${{ matrix.os }}

0 commit comments

Comments
 (0)