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 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
|
---
name: Daily
permissions: read-all
on:
# Run on user request
workflow_dispatch:
inputs:
upload_sdl:
description: 'Trigger SDL Upload'
required: false
default: false
type: boolean
# Run on schedule
schedule:
# daily at 9:00 UTC (2:00 MST)
- cron: '0 9 * * *'
concurrency:
# Cancel any existing jobs related to the target branch
group: nightly-ci-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
if: true
uses: ./.github/workflows/lint.yml
scorecard:
if: true
uses: ./.github/workflows/scorecard.yml
hadolint:
if: true
uses: ./.github/workflows/hadolint.yml
with:
output_prefix: tools-
trivy:
if: true
uses: ./.github/workflows/trivy.yml
with:
output_prefix: tools-
ip-leak-scan:
if: true
name: IP Leak Scan
uses: ./.github/workflows/ipldt.yml
secrets: inherit
with:
output_prefix: tools-
source-malware-scan:
if: true
uses: ./.github/workflows/mcafee.yml
secrets: inherit
with:
output_prefix: tools-
# This job configures variables that are useful for other jobs. Other jobs
# that depend on this one can access the variables via
# needs.setup-variables.outputs.<variable-name>
setup-variables:
if: true
uses: ./.github/workflows/setup-variables.yml
secrets: inherit
linux-build:
if: true
needs: setup-variables
uses: ./.github/workflows/cmake.yml
with:
os: linux
build_type: release
artifact_name: linux-release-build
run_tests: false
no_artifacts: false
repository: ${{ vars.DISP_REPO }}
ref: ${{ needs.setup-variables.outputs.lib_ref }}
secrets:
token: ${{ secrets.DISP_REPO_TOKEN }}
windows-build:
if: true
needs: setup-variables
uses: ./.github/workflows/cmake.yml
with:
os: windows
build_type: release
artifact_name: windows-release-build
run_tests: false
no_artifacts: false
repository: ${{ vars.DISP_REPO }}
ref: ${{ needs.setup-variables.outputs.lib_ref }}
secrets:
token: ${{ secrets.DISP_REPO_TOKEN }}
coverity:
if: true
needs: [linux-build, windows-build]
strategy:
fail-fast: false
matrix:
os:
- linux
- windows
uses: ./.github/workflows/coverity.yml
secrets: inherit
with:
os: ${{ matrix.os }}
output_prefix: tools-
dependent_artifact: ${{ matrix.os }}-release-build
# disable local report generation pending update to new tool
# old method no longer supported
# this may not be necessary to run locally,
# and can collect evidence report from the server instead
# extra_opts: --report
linux-tools-build:
if: true
needs: [linux-build]
uses: ./.github/workflows/cmake.yml
with:
os: linux
build_type: release
artifact_name: linux-tools-build
run_tests: true
no_artifacts: false
dependent_artifact: linux-release-build
windows-tools-build:
if: true
needs: [windows-build]
uses: ./.github/workflows/cmake.yml
with:
os: windows
build_type: release
artifact_name: windows-tools-build
run_tests: true
no_artifacts: false
dependent_artifact: windows-release-build
windows-malware-scan:
if: true
needs: [windows-tools-build]
uses: ./.github/workflows/mcafee.yml
secrets: inherit
with:
artifact_name: windows-tools-build
output_prefix: tools-
linux-malware-scan:
if: true
needs: [linux-tools-build]
uses: ./.github/workflows/mcafee.yml
secrets: inherit
with:
artifact_name: linux-tools-build
output_prefix: tools-
windows-sscb:
if: true
needs: [windows-tools-build]
uses: ./.github/workflows/sscb.yml
with:
os: windows
artifact_name: windows-tools-build
output_prefix: tools-
linux-sscb:
if: true
needs: [linux-tools-build]
uses: ./.github/workflows/sscb.yml
with:
os: linux
artifact_name: linux-tools-build
output_prefix: tools-
bdba:
if: true
needs:
- linux-tools-build
- windows-tools-build
uses: ./.github/workflows/bdba.yml
with:
output_prefix: tools-
version: ${{ github.ref_name }}
pattern: "*-tools-build"
secrets: inherit
sdl:
if: ${{ github.event.inputs.upload_sdl == 'true' }}
needs:
- linux-build
- windows-build
- summary
- setup-variables
uses: ./.github/workflows/sdl.yml
with:
SUMMARY_ARTIFACT: tools-release-summary
LABEL: ${{ needs.setup-variables.outputs.tools_version }}
SDLE_PROJECT: ${{vars.SDLE_ID}}
SDLE_USER: ${{vars.SDLE_API_USER}}
output_prefix: tools-
secrets:
SDLE_API_KEY: ${{ secrets.SDLE_API_KEY }}
windows-acceptance:
if: true
needs: [windows-build, windows-tools-build, setup-variables]
strategy:
fail-fast: true
matrix:
gpu:
- gen12.5
config:
- release
os:
- windows
uses: ./.github/workflows/acceptance.yml
secrets: inherit
with:
os: ${{ matrix.os }}
build_type: ${{ matrix.config }}
lib_artifact: ${{ matrix.os }}-${{ matrix.config }}-build
tools_artifact: windows-tools-build
gpu: ${{ matrix.gpu }}
distro_family: windows
distro_version: 11
test_ref: ${{ needs.setup-variables.outputs.test_ref }}
linux-acceptance:
if: true
needs: [linux-build, linux-tools-build, setup-variables]
strategy:
fail-fast: true
matrix:
gpu:
- gen12.5
distro:
- family: ubuntu
version: 24.04
config:
- release
os:
- linux
uses: ./.github/workflows/acceptance.yml
secrets: inherit
with:
os: ${{ matrix.os }}
build_type: ${{ matrix.config }}
lib_artifact: ${{ matrix.os }}-${{ matrix.config }}-build
tools_artifact: linux-tools-build
gpu: ${{ matrix.gpu }}
distro_family: ${{ matrix.distro.family }}
distro_version: ${{ matrix.distro.version }}
test_ref: ${{ needs.setup-variables.outputs.test_ref }}
ref-build:
if: true
needs: [setup-variables, linux-build, windows-build]
strategy:
fail-fast: true
matrix:
os:
- windows
- linux
uses: ./.github/workflows/cmake.yml
with:
os: ${{ matrix.os }}
build_type: release
artifact_name: ${{ matrix.os }}-ref-build
run_tests: false
no_artifacts: false
ref: ${{ needs.setup-variables.outputs.last_release_ref }}
dependent_artifact: ${{ matrix.os }}-release-build
diff-report:
if: true
needs: [linux-tools-build, windows-tools-build, ref-build]
strategy:
fail-fast: false
matrix:
os: [windows, linux]
uses: ./.github/workflows/diff.yml
with:
report_name: ${{ matrix.os }}-tools-diff-report
left: ${{ matrix.os }}-ref-build
right: ${{ matrix.os }}-tools-build
distro-tests:
if: true
needs: [linux-build, linux-tools-build, setup-variables]
strategy:
fail-fast: true
matrix:
distro:
- family: rhel
version: 8.6
- family: sles
version: 15.4
- family: ubuntu
version: 22.04
gpu:
- gen12.5
os:
- linux
config:
- release
uses: ./.github/workflows/acceptance.yml
secrets: inherit
with:
os: ${{ matrix.os }}
build_type: ${{ matrix.config }}
lib_artifact: ${{ matrix.os }}-${{ matrix.config }}-build
tools_artifact: linux-tools-build
gpu: ${{ matrix.gpu }}
distro_family: ${{ matrix.distro.family }}
distro_version: ${{ matrix.distro.version }}
test_ref: ${{ needs.setup-variables.outputs.test_ref }}
experimental-off:
if: '! github.event.pull_request.draft'
needs: setup-variables
uses: ./.github/workflows/cmake.yml
strategy:
fail-fast: false
matrix:
os:
- windows
- linux
with:
os: ${{ matrix.os }}
build_type: release
artifact_name: ${{ matrix.os }}-experimental-off-build
run_tests: false
no_artifacts: false
configure_options: >-
-DBUILD_EXPERIMENTAL=OFF
repository: ${{ vars.DISP_REPO }}
ref: ${{ needs.setup-variables.outputs.lib_ref }}
secrets:
token: ${{ secrets.DISP_REPO_TOKEN }}
tools-experimental-off:
if: '! github.event.pull_request.draft'
needs: [experimental-off]
uses: ./.github/workflows/cmake.yml
strategy:
fail-fast: false
matrix:
os:
- windows
- linux
with:
os: ${{ matrix.os }}
build_type: release
artifact_name: ${{ matrix.os }}-tools-experimental-off-build
run_tests: false
no_artifacts: true
configure_options: >-
-DBUILD_EXPERIMENTAL=OFF
dependent_artifact: ${{ matrix.os }}-experimental-off-build
summary:
if: "always()"
needs:
- hadolint
- trivy
- ip-leak-scan
- source-malware-scan
- coverity
- windows-malware-scan
- linux-malware-scan
- windows-sscb
- linux-sscb
- bdba
- diff-report
- windows-acceptance
- linux-acceptance
- distro-tests
- tools-experimental-off
uses: ./.github/workflows/summary.yml
with:
output_prefix: tools-
|