Skip to content

Commit 52a1cb7

Browse files
feat: update CMake configuration to use Ninja build system and install dependencies
1 parent 60a28ed commit 52a1cb7

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: Install ubuntu Dependencies
1818
run: |
1919
sudo apt-get update
20-
sudo apt-get install -y build-essential cmake g++-14 libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
20+
sudo apt-get install -y build-essential cmake g++-14 ninja-build libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
2121
- name: Configure CMake
22-
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
22+
run: cmake -B ${{ github.workspace }}/build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
2323
env:
2424
CXX: g++-14
2525
- name: Build Target
@@ -38,7 +38,7 @@ jobs:
3838
- name: Checkout repository
3939
uses: actions/checkout@v6
4040
- name: Configure CMake
41-
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
41+
run: cmake -B ${{ github.workspace }}/build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
4242
- name: Build Target
4343
run: cmake --build ${{ github.workspace }}/build --config Release
4444
- name: Package Asset
@@ -55,8 +55,10 @@ jobs:
5555
steps:
5656
- name: Checkout repository
5757
uses: actions/checkout@v6
58+
- name: Install Ninja
59+
run: brew install ninja
5860
- name: Configure CMake
59-
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
61+
run: cmake -B ${{ github.workspace }}/build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
6062
- name: Build Target
6163
run: cmake --build ${{ github.workspace }}/build --config Release
6264
- name: Package Asset

.github/workflows/verify.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Verify
2+
concurrency:
3+
cancel-in-progress: false
4+
group: verify
25

36
on:
47
push:
@@ -16,9 +19,9 @@ jobs:
1619
- name: Install ubuntu Dependencies
1720
run: |
1821
sudo apt-get update
19-
sudo apt-get install -y build-essential cmake g++-14 libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
22+
sudo apt-get install -y build-essential cmake g++-14 ninja-build libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
2023
- name: Configure CMake
21-
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
24+
run: cmake -B ${{ github.workspace }}/build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
2225
env:
2326
CXX: g++-14
2427
- name: Build Target
@@ -33,7 +36,7 @@ jobs:
3336
- name: Checkout repository
3437
uses: actions/checkout@v6
3538
- name: Configure CMake
36-
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
39+
run: cmake -B ${{ github.workspace }}/build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
3740
- name: Build Target
3841
run: cmake --build ${{ github.workspace }}/build --config Release
3942
- name: Verify Executable Production
@@ -46,8 +49,10 @@ jobs:
4649
steps:
4750
- name: Checkout repository
4851
uses: actions/checkout@v6
52+
- name: Install Ninja
53+
run: brew install ninja
4954
- name: Configure CMake
50-
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
55+
run: cmake -B ${{ github.workspace }}/build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release
5156
- name: Build Target
5257
run: cmake --build ${{ github.workspace }}/build --config Release
5358
- name: Verify Executable Production

0 commit comments

Comments
 (0)