Skip to content

Commit ecfde74

Browse files
committed
ci: set ninja to GCC & Clang to speed up compilation
1 parent b1301d3 commit ecfde74

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/clang.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939
4040
- name: Install curl (Linux)
4141
if: matrix.os == 'ubuntu-latest'
42-
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
42+
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev ninja-build
4343

4444
- name: Install curl (Macos)
4545
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
46-
run: brew install curl
46+
run: brew install curl ninja
4747

4848
- name: Install clang (Linux)
4949
if: matrix.os == 'ubuntu-latest'
5050
run: |
51-
sudo apt install clang
51+
sudo apt install -y clang
5252
5353
- name: Configure CMake
5454
run: >
@@ -57,6 +57,7 @@ jobs:
5757
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
5858
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
5959
-S ${{ github.workspace }}
60+
-G Ninja -Wno-dev
6061
6162
- name: Build
6263
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target plugify --config ${{ matrix.build_type }} -- -j

.github/workflows/gcc.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Install curl (Linux)
4141
if: matrix.os == 'ubuntu-latest'
42-
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev
42+
run: sudo apt update && sudo apt install -y libcurl4-openssl-dev ninja-build
4343

4444
- name: Configure CMake
4545
run: >
@@ -48,6 +48,7 @@ jobs:
4848
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
4949
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
5050
-S ${{ github.workspace }}
51+
-G Ninja -Wno-dev
5152
5253
- name: Build
5354
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target plugify --config ${{ matrix.build_type }} -- -j

.github/workflows/msys2.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040
with:
4141
update: true
4242
msystem: MINGW64
43-
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc mingw-w64-x86_64-curl
43+
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc mingw-w64-x86_64-curl git
4444

4545
- name: Configure CMake
4646
run: >
47-
cmake -G Ninja -B build
47+
cmake -B build -G Ninja -Wno-dev
4848
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
4949
5050
- name: Build

0 commit comments

Comments
 (0)