Skip to content

Commit 3ee3c29

Browse files
committed
Split GH CI scripts into multiple files
1 parent 2a3c95f commit 3ee3c29

File tree

6 files changed

+225
-158
lines changed

6 files changed

+225
-158
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
- .github/workflows/build-macos-13.yml
23+
workflow_dispatch:
24+
25+
jobs:
26+
macOS-13:
27+
runs-on: macos-13
28+
env:
29+
CMAKE_GENERATOR: Ninja
30+
steps:
31+
- uses: maxim-lobanov/setup-xcode@v1
32+
with:
33+
xcode-version: '14.3.1'
34+
- name: Setup Runner Environment
35+
run: |
36+
uname -a
37+
xcrun --show-sdk-version
38+
CORES=$(sysctl -n hw.ncpu)
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+
- name: Install Build Tools
43+
run: |
44+
brew update
45+
brew install cmake ninja boost
46+
- uses: actions/checkout@v4
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
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
- .github/workflows/build-macos-14.yml
23+
workflow_dispatch:
24+
25+
jobs:
26+
macOS-14:
27+
runs-on: macos-14
28+
env:
29+
CMAKE_GENERATOR: Ninja
30+
steps:
31+
- uses: maxim-lobanov/setup-xcode@v1
32+
with:
33+
xcode-version: '15.4.0'
34+
- name: Setup Runner Environment
35+
run: |
36+
uname -a
37+
xcrun --show-sdk-version
38+
CORES=$(sysctl -n hw.ncpu)
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+
- name: Install Build Tools
43+
run: |
44+
brew update
45+
brew install cmake ninja boost
46+
- uses: actions/checkout@v4
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
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
- .github/workflows/build-macos-15.yml
23+
workflow_dispatch:
24+
25+
jobs:
26+
macOS-15:
27+
runs-on: macos-15
28+
env:
29+
CMAKE_GENERATOR: Ninja
30+
steps:
31+
- uses: maxim-lobanov/setup-xcode@v1
32+
with:
33+
xcode-version: '16.4.0'
34+
- name: Setup Runner Environment
35+
run: |
36+
uname -a
37+
xcrun --show-sdk-version
38+
CORES=$(sysctl -n hw.ncpu)
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+
- name: Install Build Tools
43+
run: |
44+
brew update
45+
brew install cmake ninja boost
46+
- uses: actions/checkout@v4
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
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
- .github/workflows/build-ubuntu-2404.yml
23+
workflow_dispatch:
24+
25+
jobs:
26+
ubuntu-2404:
27+
runs-on: ubuntu-24.04
28+
env:
29+
CMAKE_GENERATOR: Ninja
30+
steps:
31+
- name: Setup Runner Environment
32+
run: |
33+
uname -a
34+
lsb_release -a
35+
CORES=$(nproc)
36+
echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
37+
echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV
38+
echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV
39+
- name: Install Build Tools
40+
run: |
41+
sudo apt-get -qq update
42+
sudo apt-get -qq install cmake ninja-build g++ libboost-program-options-dev libboost-test-dev
43+
- uses: actions/checkout@v4
44+
- name: Configure Multi-Config
45+
run: cmake --preset multi-san
46+
- name: Build Debug
47+
run: cmake --build --preset debug-san
48+
- name: Test Debug
49+
run: ctest --preset debug-san
50+
- name: Build Release
51+
run: cmake --build --preset release-san
52+
- name: Test Release
53+
run: ctest --preset release-san

.github/workflows/build.yml

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

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*~
2-
build
3-
build-*
4-
cmake-build-*
5-
local
62
.idea
3+
/build
4+
/build-*
5+
/cmake-build-*
6+
/local

0 commit comments

Comments
 (0)