Skip to content

Commit 715f62f

Browse files
committed
Split GH CI scripts into multiple files
1 parent 2a3c95f commit 715f62f

File tree

6 files changed

+240
-158
lines changed

6 files changed

+240
-158
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: Build for macOS-13
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- src/**
8+
- test/**
9+
- cmake/**
10+
- CMakeLists.txt
11+
- CMakePresets.json
12+
- .github/workflows/build-macos-13.yml
13+
pull_request:
14+
branches: [master]
15+
types: [synchronize, opened, reopened, ready_for_review]
16+
paths:
17+
- src/**
18+
- test/**
19+
- cmake/**
20+
- CMakeLists.txt
21+
- CMakePresets.json
22+
workflow_dispatch:
23+
24+
concurrency:
25+
group: Server-${{ github.head_ref }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
macOS-13:
30+
runs-on: macos-13
31+
env:
32+
CMAKE_GENERATOR: Ninja
33+
steps:
34+
- uses: maxim-lobanov/setup-xcode@v1
35+
with:
36+
xcode-version: '14.3.1'
37+
- name: Setup Runner Environment
38+
run: |
39+
uname -a
40+
xcrun --show-sdk-version
41+
CORES=$(sysctl -n hw.ncpu)
42+
echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
43+
echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
44+
echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV
45+
- uses: actions/checkout@v4
46+
47+
- name: Install Build Tools
48+
run: |
49+
brew update
50+
brew install cmake ninja boost
51+
- name: Configure Multi-Config
52+
run: cmake --preset multi-san
53+
- name: Build Debug
54+
run: cmake --build --preset debug-san
55+
- name: Test Debug
56+
run: ctest --preset debug-san
57+
- name: Build Release
58+
run: cmake --build --preset release-san
59+
- name: Test Release
60+
run: ctest --preset release-san
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: Build for macOS-14
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- src/**
8+
- test/**
9+
- cmake/**
10+
- CMakeLists.txt
11+
- CMakePresets.json
12+
- .github/workflows/build-macos-14.yml
13+
pull_request:
14+
branches: [master]
15+
types: [synchronize, opened, reopened, ready_for_review]
16+
paths:
17+
- src/**
18+
- test/**
19+
- cmake/**
20+
- CMakeLists.txt
21+
- CMakePresets.json
22+
workflow_dispatch:
23+
24+
concurrency:
25+
group: Server-${{ github.head_ref }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
macOS-14:
30+
runs-on: macos-14
31+
env:
32+
CMAKE_GENERATOR: Ninja
33+
steps:
34+
- uses: maxim-lobanov/setup-xcode@v1
35+
with:
36+
xcode-version: '15.4.0'
37+
- name: Setup Runner Environment
38+
run: |
39+
uname -a
40+
xcrun --show-sdk-version
41+
CORES=$(sysctl -n hw.ncpu)
42+
echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
43+
echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
44+
echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV
45+
- uses: actions/checkout@v4
46+
47+
- name: Install Build Tools
48+
run: |
49+
brew update
50+
brew install cmake ninja boost
51+
- name: Configure Multi-Config
52+
run: cmake --preset multi-san
53+
- name: Build Debug
54+
run: cmake --build --preset debug-san
55+
- name: Test Debug
56+
run: ctest --preset debug-san
57+
- name: Build Release
58+
run: cmake --build --preset release-san
59+
- name: Test Release
60+
run: ctest --preset release-san
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: Build for macOS-15
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- src/**
8+
- test/**
9+
- cmake/**
10+
- CMakeLists.txt
11+
- CMakePresets.json
12+
- .github/workflows/build-macos-15.yml
13+
pull_request:
14+
branches: [master]
15+
types: [synchronize, opened, reopened, ready_for_review]
16+
paths:
17+
- src/**
18+
- test/**
19+
- cmake/**
20+
- CMakeLists.txt
21+
- CMakePresets.json
22+
workflow_dispatch:
23+
24+
concurrency:
25+
group: Server-${{ github.head_ref }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
macOS-15:
30+
runs-on: macos-15
31+
env:
32+
CMAKE_GENERATOR: Ninja
33+
steps:
34+
- uses: maxim-lobanov/setup-xcode@v1
35+
with:
36+
xcode-version: '16.4.0'
37+
- name: Setup Runner Environment
38+
run: |
39+
uname -a
40+
xcrun --show-sdk-version
41+
CORES=$(sysctl -n hw.ncpu)
42+
echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
43+
echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
44+
echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV
45+
- uses: actions/checkout@v4
46+
47+
- name: Install Build Tools
48+
run: |
49+
brew update
50+
brew install cmake ninja boost
51+
- name: Configure Multi-Config
52+
run: cmake --preset multi-san
53+
- name: Build Debug
54+
run: cmake --build --preset debug-san
55+
- name: Test Debug
56+
run: ctest --preset debug-san
57+
- name: Build Release
58+
run: cmake --build --preset release-san
59+
- name: Test Release
60+
run: ctest --preset release-san
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
name: Build for Ubuntu-24.04
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- src/**
8+
- test/**
9+
- cmake/**
10+
- CMakeLists.txt
11+
- CMakePresets.json
12+
- .github/workflows/build-ubuntu-2404.yml
13+
pull_request:
14+
branches: [master]
15+
types: [synchronize, opened, reopened, ready_for_review]
16+
paths:
17+
- src/**
18+
- test/**
19+
- cmake/**
20+
- CMakeLists.txt
21+
- CMakePresets.json
22+
workflow_dispatch:
23+
24+
concurrency:
25+
group: Server-${{ github.head_ref }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
ubuntu-2404:
30+
runs-on: ubuntu-24.04
31+
env:
32+
CMAKE_GENERATOR: Ninja
33+
steps:
34+
- name: Setup Runner Environment
35+
run: |
36+
uname -a
37+
lsb_release -a
38+
CORES=$(nproc)
39+
echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
40+
echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
41+
echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV
42+
- uses: actions/checkout@v4
43+
- name: Install Build Tools
44+
run: |
45+
sudo apt-get -qq update
46+
sudo apt-get -qq install cmake ninja-build g++ libboost-program-options-dev libboost-test-dev
47+
- name: Configure Multi-Config
48+
run: cmake --preset multi-san
49+
- name: Build Debug
50+
run: cmake --build --preset debug-san
51+
- name: Test Debug
52+
run: ctest --preset debug-san
53+
- name: Build Release
54+
run: cmake --build --preset release-san
55+
- name: Test Release
56+
run: ctest --preset release-san

.github/workflows/build.yml

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)