-
Notifications
You must be signed in to change notification settings - Fork 983
123 lines (109 loc) · 3.87 KB
/
Copy path01-ci-pipeline.yml
File metadata and controls
123 lines (109 loc) · 3.87 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
123
name: Main
on:
push:
branches: [ "main" ]
paths-ignore: &paths-ignore
- '**.md'
- '.github/CODEOWNERS'
- '.github/ISSUE_TEMPLATE/**'
- '.github/auto-assign-config.yml'
- '.github/codecov.yml'
- '.github/dependabot.yml'
- '.github/workflows/auto-assign.yml'
- '.github/workflows/community-pr-handler.yml'
- '.github/workflows/issue-auto-assign.yml'
- '.github/workflows/build_wheel.yml'
- '.github/workflows/build_test_wheel.yml'
- '.github/workflows/_build_wheel_job.yml'
- '.github/workflows/continuous_bench.yml'
- '.github/workflows/nightly_coverage.yml'
- '.github/workflows/07-linux-riscv-build.yml'
- '.github/workflows/docker/**'
- '.github/workflows/scripts/**'
merge_group:
pull_request:
branches: [ "main" ]
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore: *paths-ignore
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# Code quality checks (fast, run first)
lint:
if: >-
github.event_name != 'pull_request' ||
(!github.event.pull_request.draft &&
!contains(github.event.pull_request.title, 'wip'))
uses: ./.github/workflows/02-lint-check.yml
# Static analysis: clang-tidy on changed C/C++ files
clang-tidy:
if: >-
github.event_name != 'pull_request' ||
(!github.event.pull_request.draft &&
!contains(github.event.pull_request.title, 'wip'))
uses: ./.github/workflows/clang_tidy.yml
# Main build and test matrix
build-and-test-macos-arm64:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (macos-arm64)
needs: [lint, clang-tidy]
uses: ./.github/workflows/03-macos-linux-build.yml
with:
platform: macos-arm64
os: macos-15
build-and-test-macos-26-arm64:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (macos-26-arm64)
needs: [lint, clang-tidy]
uses: ./.github/workflows/03-macos-linux-build.yml
with:
platform: macos-arm64
os: macos-26
build-and-test-linux-arm64:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (linux-arm64)
needs: [lint, clang-tidy]
uses: ./.github/workflows/03-macos-linux-build.yml
with:
platform: linux-arm64
os: ubuntu-24.04-arm
build-and-test-linux-x64:
name: Build & Test (linux-x64)
needs: [lint, clang-tidy]
uses: ./.github/workflows/03-macos-linux-build.yml
with:
platform: linux-x64
os: ubuntu-24.04
build-and-test-linux-x64-clang:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (linux-x64-clang)
needs: [lint, clang-tidy]
uses: ./.github/workflows/03-macos-linux-build.yml
with:
platform: linux-x64-clang
os: ubuntu-24.04
compiler: clang
build-android:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (android)
needs: [lint, clang-tidy]
uses: ./.github/workflows/04-android-build.yml
build-and-test-on-windows:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (Windows)
needs: [lint, clang-tidy]
uses: ./.github/workflows/05-windows-build.yml
build-ios:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (iOS)
needs: [lint, clang-tidy]
uses: ./.github/workflows/06-ios-build.yml
build-and-test-musllinux:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
name: Build & Test (musllinux)
needs: [lint, clang-tidy]
uses: ./.github/workflows/09-musllinux-build.yml