-
Notifications
You must be signed in to change notification settings - Fork 0
122 lines (101 loc) · 3.33 KB
/
Copy pathci.yml
File metadata and controls
122 lines (101 loc) · 3.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# SPDX-License-Identifier: MIT
# Copyright (c) 2026 The Skigen Contributors
#
# ═══════════════════════════════════════════════════════════════════════════
# Pull Request Pipeline
# ═══════════════════════════════════════════════════════════════════════════
#
# Triggered on pull requests targeting `staging` or `main`.
#
# Branch model: Feature → Staging → Main
# ═══════════════════════════════════════════════════════════════════════════
name: Pull Request
on:
pull_request:
branches:
- staging
- main
concurrency:
group: pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build-linux:
name: Linux (GCC ${{ matrix.gcc }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
gcc: [13, 14]
steps:
- uses: actions/checkout@v5
- name: Checkout Eigen
uses: actions/checkout@v5
with:
repository: skigen-project/eigen
ref: '3.4'
path: eigen
- name: Install Qt 6
uses: jurplel/install-qt-action@v4
with:
version: '6.8.*'
modules: 'qtshadertools'
- name: Configure
run: |
cmake -B build \
-DCMAKE_CXX_COMPILER=g++-${{ matrix.gcc }} \
-DSKIGENPLOT_BUILD_TESTS=ON \
-DSKIGENPLOT_BUILD_EXAMPLES=ON
- name: Build
run: cmake --build build -j$(nproc)
- name: Test
run: ctest --test-dir build --output-on-failure
build-macos:
name: macOS (AppleClang)
runs-on: macos-14
steps:
- uses: actions/checkout@v5
- name: Checkout Eigen
uses: actions/checkout@v5
with:
repository: skigen-project/eigen
ref: '3.4'
path: eigen
- name: Install Qt 6
uses: jurplel/install-qt-action@v4
with:
version: '6.8.*'
modules: 'qtshadertools'
- name: Configure
run: |
cmake -B build \
-DSKIGENPLOT_BUILD_TESTS=ON \
-DSKIGENPLOT_BUILD_EXAMPLES=ON
- name: Build
run: cmake --build build -j$(sysctl -n hw.logicalcpu)
- name: Test
run: ctest --test-dir build --output-on-failure
build-windows:
name: Windows (MSVC)
runs-on: windows-2022
steps:
- uses: actions/checkout@v5
- name: Checkout Eigen
uses: actions/checkout@v5
with:
repository: skigen-project/eigen
ref: '3.4'
path: eigen
- name: Install Qt 6
uses: jurplel/install-qt-action@v4
with:
version: '6.8.*'
modules: 'qtshadertools'
- name: Configure
run: |
cmake -B build `
-DSKIGENPLOT_BUILD_TESTS=ON `
-DSKIGENPLOT_BUILD_EXAMPLES=ON
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build -C Release --output-on-failure