-
Notifications
You must be signed in to change notification settings - Fork 14
138 lines (118 loc) · 3.21 KB
/
CICD.yml
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT
# Main YML file for the CICD pipeline
name: CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Run on a daily schedule to perform the full set of tests.
schedule:
- cron: '00 21 * * *'
merge_group:
permissions:
contents: read
packages: write
concurrency:
# Cancel any CI/CD workflow currently in progress for the same PR.
# Allow running concurrently with any other commits.
group: cicd-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
windows_release:
uses: ./.github/workflows/Build.yml
with:
platform: windows-2019
configuration: RelWithDebInfo
enable_sanitizers: false
enable_coverage: false
windows_debug:
uses: ./.github/workflows/Build.yml
with:
platform: windows-2019
configuration: Debug
enable_sanitizers: false
enable_coverage: false
windows_release_2022:
uses: ./.github/workflows/Build.yml
with:
platform: windows-2022
configuration: RelWithDebInfo
enable_sanitizers: false
enable_coverage: false
windows_debug_2022:
uses: ./.github/workflows/Build.yml
with:
platform: windows-2022
configuration: Debug
enable_sanitizers: false
enable_coverage: false
ubuntu_release:
uses: ./.github/workflows/Build.yml
with:
platform: ubuntu-22.04
configuration: Release
enable_sanitizers: false
enable_coverage: false
publish_docker: true
ubuntu_debug:
uses: ./.github/workflows/Build.yml
with:
platform: ubuntu-latest
configuration: Debug
enable_sanitizers: false
enable_coverage: false
ubuntu_release_sanitizers:
uses: ./.github/workflows/Build.yml
with:
platform: ubuntu-latest
configuration: Release
enable_sanitizers: true
enable_coverage: false
ubuntu_debug_sanitizers:
uses: ./.github/workflows/Build.yml
with:
platform: ubuntu-latest
configuration: Debug
enable_sanitizers: true
enable_coverage: false
ubuntu_release_coverage:
uses: ./.github/workflows/Build.yml
with:
platform: ubuntu-22.04
configuration: Release
enable_sanitizers: false
enable_coverage: true
ubuntu_debug_coverage:
uses: ./.github/workflows/Build.yml
with:
platform: ubuntu-latest
configuration: Debug
enable_sanitizers: false
enable_coverage: true
macos_release:
uses: ./.github/workflows/Build.yml
with:
platform: macos-latest
configuration: Release
macos_debug:
uses: ./.github/workflows/Build.yml
with:
platform: macos-latest
configuration: Debug
finish:
needs:
- ubuntu_release_coverage
- ubuntu_debug_coverage
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
with:
egress-policy: audit
- name: Coveralls Finished
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 # v2.3.4
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true