-
Notifications
You must be signed in to change notification settings - Fork 13
137 lines (117 loc) · 3.19 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
# 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 * * *'
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-latest
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-latest
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-11
configuration: Release
macos_debug:
uses: ./.github/workflows/Build.yml
with:
platform: macos-11
configuration: Debug
finish:
needs:
- ubuntu_release_coverage
- ubuntu_debug_coverage
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Coveralls Finished
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true