forked from nanoframework/nf-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-nightly.yml
718 lines (627 loc) · 24.5 KB
/
azure-pipelines-nightly.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
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.
trigger: none
pr:
autoCancel: true
# add nf-tools repo to resources (for Azure Pipelines templates)
resources:
repositories:
- repository: templates
type: github
name: nanoframework/nf-tools
endpoint: nanoframework
- repository: esp32_idf
type: github
name: espressif/esp-idf
endpoint: nanoframework
ref: refs/tags/v5.1.4
# scheduled build
# the schedule is defined at the AZDO web interface because of inconsistencies with time zones
jobs:
##############################
- job: Check_Build_Options
pool:
vmImage: "windows-latest"
variables:
DOTNET_NOLOGO: true
steps:
- checkout: self
fetchDepth: 1
- template: azure-pipelines-templates/get-commit-details.yml@templates
# check build options
- powershell: |
if($env:Build_Reason -eq "Schedule")
{
# scheduled daily build
$now = [System.DateTime]::UtcNow.Date
"Today is $now" | Write-Host
# get commit date
$commitDate = git show -s --format=%cd --date=short
$commitDate = [DateTime]$commitDate
"Last commit dated $commitDate" | Write-Host
$yesterdayDate = [System.DateTime]::UtcNow.AddDays(-1).Date
"Comparing with $yesterdayDate" | Write-Host
# shceduled build is at start of day, so check if commit date was from yesterday
if($commitDate -ge $yesterdayDate)
{
# last commit was yesterday, build images
echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]true"
"**Commits from today. Go and check what changed.**" | Write-Host
}
else
{
# last commit is not from yesterday, skip build
"***************************************************" | Write-Host
"* Last commit is older than today, skipping build *" | Write-Host
"***************************************************" | Write-Host
echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]false"
}
}
else
{
# build for other reasons: build depending on target tag
echo "##vso[task.setvariable variable=CHECK_CHANGES;isOutput=true]true"
if ($env:System_PullRequest_PullRequestId -ne $null)
{
"**This is a PR build**" | Write-Host
}
else
{
"**build for other reasons**" | Write-Host
}
}
name: BuildOptions
displayName: Get build options
# check what changed
- powershell: |
git config --global user.email "nfbot"
git config --global user.name "[email protected]"
$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$(GitHubToken)")))"
$buildingPr = $env:System_PullRequest_PullRequestId -ne $null
# set default values
echo "##vso[task.setvariable variable=BUILD_CHIBIOS;isOutput=true]false"
echo "##vso[task.setvariable variable=BUILD_ESP32;isOutput=true]false"
echo "##vso[task.setvariable variable=BUILD_TI;isOutput=true]false"
echo "##vso[task.setvariable variable=BUILD_AZURERTOS;isOutput=true]false"
echo "##vso[task.setvariable variable=BUILD_ALL;isOutput=true]false"
if($env:StartReleaseCandidate -like "true")
{
# this is a release prep so NO build
Write-host "##[command] Start Release candidate build, don't build"
}
else
{
# check if this build was triggered by the pipeline itself
if($env:Build_Reason -eq "Manual")
{
# this is a manual build, no need to check anything
Write-host "##[command] Manual build"
}
else
{
if($buildingPr)
{
# get files changed in PR, if this is a PR
$commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-interpreter/pulls/$env:System_PullRequest_PullRequestNumber/files" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
# filter removed files
$files = $commit.where{$_.status -ne 'removed'}
# get file names only
$files = $files | % {$_.filename}
}
else
{
# scheduled build, grab repo history for the last day
$commitHistory = git log --name-status --since=1.day --format=
# filter removed files
$files = $commitHistory.where{$_[0] -ne 'D'}
# get file names only
$files = $files | % {$_.SubString(2)}
}
Write-host "##[group] Files changed:"
$files | % { Write-host $_ }
Write-host "##[endgroup]"
if(
(($files.where{$_.Contains('/')}).Count -eq 0) -Or
(($files.where{$_.StartsWith('azure-pipelines-templates')}).Count -gt 0) -Or
(($files.where{$_.StartsWith('CMake')}).Count -gt 0) -Or
(($files.where{$_.StartsWith('src')}).Count -gt 0)
)
{
# files at:
# - repo root
# - azure-pipelines-templates
# - CMake
# - src
if($buildingPr)
{
# ChibiOS targets are the only ones needing to be build on a global change
echo "##vso[task.setvariable variable=BUILD_CHIBIOS;isOutput=true]true"
Write-host "##[command] Building ChibiOS targets"
}
else
{
echo "##vso[task.setvariable variable=BUILD_ALL;isOutput=true]true"
Write-host "##[command] Building ALL targets"
}
}
if($buildingPr)
{
if(
($files.where{$_.Contains('targets/ChibiOS/_common')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_FatFS')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_include')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_Lwip')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_nanoBooter')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_nanoCLR')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_FatFS')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_nf-overlay')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/_littlefs')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/ORGPAL_PALTHREE')}).Count -gt 0 -Or
($files.where{$_.Contains('targets/ChibiOS/ST_NUCLEO64_F091RC')}).Count -gt 0
)
{
# files at ChibiOS global folders or targets being built with this pipeline
echo "##vso[task.setvariable variable=BUILD_CHIBIOS;isOutput=true]true"
Write-host "##[command] Building ChibiOS targets"
}
}
else
{
if( ($files.where{$_.Contains('targets/ChibiOS')}).Count -gt 0)
{
# files at ChibiOS folder
echo "##vso[task.setvariable variable=BUILD_CHIBIOS;isOutput=true]true"
Write-host "##[command] Building ChibiOS targets"
}
}
if(
!$buildingPr -And
($files.where{$_.Contains('targets/ESP32')}).Count -gt 0)
{
# files at ESP32 folder
echo "##vso[task.setvariable variable=BUILD_ESP32;isOutput=true]true"
Write-host "##[command] Building ESP32 targets"
}
if(
!$buildingPr -And
($files.where{$_.Contains('targets/TI_SimpleLink')}).Count -gt 0)
{
# files at TI_SimpleLink folder
echo "##vso[task.setvariable variable=BUILD_TI;isOutput=true]true"
Write-host "##[command] Building TI SimpleLink targets"
}
if(
!$buildingPr -And
($files.where{$_.Contains('targets/AzureRTOS')}).Count -gt 0)
{
# files at AzureRTOS folder
echo "##vso[task.setvariable variable=BUILD_AZURERTOS;isOutput=true]true"
Write-host "##[command] Building Azure RTOS targets"
}
}
}
name: TargetsToBuild
displayName: Get targets to build
condition: eq(variables['BuildOptions.CHECK_CHANGES'], 'True')
################
# STM32
- job: Build_STM32_targets
condition: >-
or(
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_ALL'], true),
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_CHIBIOS'], true),
contains(dependencies.Check_Build_Options.outputs['GetCommitDetails.COMMIT_MESSAGE'], '***BUILD_ALL***'),
and(
eq(variables['Build.Reason'], 'Manual'),
or(
eq(variables['BUILD_ALL__'], 'true'),
eq(variables['BUILD_CHIBIOS__'], 'true')
)
)
)
dependsOn:
- Check_Build_Options
pool:
vmImage: "windows-latest"
strategy:
matrix:
ORGPAL_PALTHREE:
TargetBoard: ORGPAL_PALTHREE
TargetSeries: "stm32f7xx"
BuildOptions:
NeedsDFU: true
NeedsSRECORD: false
CMakePreset: ORGPAL_PALTHREE
ORGPAL_PALX:
TargetBoard: ORGPAL_PALX
TargetSeries: "stm32f7xx"
BuildOptions:
NeedsDFU: true
NeedsSRECORD: false
CMakePreset: ORGPAL_PALX
ST_NUCLEO64_F091RC:
TargetBoard: ST_NUCLEO64_F091RC
TargetSeries: "stm32f0xx"
BuildOptions:
NeedsDFU: false
NeedsSRECORD: true
CMakePreset: ST_NUCLEO64_F091RC
variables:
DOTNET_NOLOGO: true
# creates a counter and assigns it to the revision variable
REVISION: $[counter('STM32_1_10_0_versioncounter', 0)]
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
TargetPlatform: "stm32"
steps:
- template: azure-pipelines-templates/build-preparations.yml
- template: azure-pipelines-templates/nb-gitversioning.yml
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
- template: azure-pipelines-templates/download-install-ninja.yml
- template: azure-pipelines-templates/download-srecord.yml
- template: azure-pipelines-templates/download-hexdfu.yml
- template: azure-pipelines-templates/build-chibios-stm32-targets.yml
- template: azure-pipelines-templates/pack-publish-artifacts.yml
- template: azure-pipelines-templates/publish-cloudsmith.yml
- template: azure-pipelines-templates/pack-publish-managed-helpers.yml
#################
# ESP32 targets
- job: Build_ESP32_targets
condition: >-
or(
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_ALL'], true),
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_ESP32'], true),
contains(dependencies.Check_Build_Options.outputs['GetCommitDetails.COMMIT_MESSAGE'], '***BUILD_ALL***'),
and(
eq(variables['Build.Reason'], 'Manual'),
or(
eq(variables['BUILD_ALL__'], 'true'),
eq(variables['BUILD_ESP32__'], 'true')
)
)
)
dependsOn:
- Check_Build_Options
pool:
vmImage: "windows-latest"
strategy:
matrix:
ESP32_REV0:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
SDK_config: sdkconfig.default_nopsram.esp32
IDF_Target: esp32
TargetName: ESP32
PackageName: ESP32_REV0
CMakePreset: ESP32_REV0
ESP32_PSRAM_REV3:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32
PackageName: ESP32_PSRAM_REV3
CMakePreset: ESP32_PSRAM_REV3
ESP32_PSRAM_XTAL26_REV0:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32
PackageName: ESP32_PSRAM_XTAL26_REV0
CMakePreset: ESP32_PSRAM_XTAL26_REV0
ESP32_REV3:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32
PackageName: ESP32_REV3
CMakePreset: ESP32_REV3
ESP32_PICO:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_PICO
PackageName: ESP32_PICO
CMakePreset: ESP32_PICO
KALUGA_1:
TargetBoard: ESP32_S2
TargetSeries: "esp32_s2"
BuildOptions:
IDF_Target: esp32s2
TargetName: KALUGA_1
PackageName: KALUGA_1
CMakePreset: KALUGA_1
ESP32_BLE_REV3:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32
PackageName: ESP32_BLE_REV3
CMakePreset: ESP32_BLE_REV3
ESP32_OLIMEX:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_OLIMEX
PackageName: ESP32_OLIMEX
CMakePreset: ESP32_OLIMEX
ESP32_OLIMEX_WROVER:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_OLIMEX_WROVER
PackageName: ESP32_OLIMEX_WROVER
CMakePreset: ESP32_OLIMEX_WROVER
M5StickC:
TargetBoard: ESP32
TargetPlatform: "esp32"
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: M5StickC
PackageName: M5StickC
CMakePreset: M5StickC
M5StickCPlus:
TargetBoard: ESP32
TargetPlatform: "esp32"
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: M5StickCPlus
PackageName: M5StickCPlus
CMakePreset: M5StickCPlus
M5Core:
TargetBoard: ESP32
TargetPlatform: "esp32"
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: M5Core
PackageName: M5Core
CMakePreset: M5Core
M5Core2:
TargetBoard: ESP32
TargetPlatform: "esp32"
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: M5Core2
PackageName: M5Core2
CMakePreset: M5Core2
AtomS3:
TargetBoard: ESP32_S3
TargetPlatform: "esp32"
TargetSeries: "esp32s3"
BuildOptions:
IDF_Target: esp32s3
TargetName: AtomS3
PackageName: AtomS3
CMakePreset: AtomS3
ESP32_C3_REV3:
TargetBoard: ESP32_C3
TargetSeries: "esp32c3"
BuildOptions:
IDF_Target: esp32c3
TargetName: ESP32_C3_REV3
PackageName: ESP32_C3_REV3
CMakePreset: ESP32_C3_REV3
ESP32_GenericDisplay_REV0:
TargetBoard: ESP32
TargetPlatform: "esp32"
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_GenericDisplay_REV0
PackageName: ESP32_GenericDisplay_REV0
CMakePreset: ESP32_GenericDisplay_REV0
ESP32_PSRAM_BLE_GenericGraphic_REV3:
TargetBoard: ESP32
TargetPlatform: "esp32"
TargetSeries: "esp32"
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_PSRAM_BLE_GenericGraphic_REV3
PackageName: ESP32_PSRAM_BLE_GenericGraphic_REV3
CMakePreset: ESP32_PSRAM_BLE_GenericGraphic_REV3
ESP32_PSRAM_REV3_IPV6:
TargetBoard: ESP32
TargetPlatform: 'esp32'
TargetSeries: 'esp32'
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_PSRAM_REV3_IPV6
PackageName: ESP32_PSRAM_REV3_IPV6
CMakePreset: ESP32_PSRAM_REV3_IPV6
XIAO_ESP32C3:
TargetBoard: ESP32_C3
TargetSeries: "esp32c3"
BuildOptions:
IDF_Target: esp32c3
TargetName: XIAO_ESP32C3
PackageName: XIAO_ESP32C3
CMakePreset: XIAO_ESP32C3
ESP32_S3_BLE:
TargetBoard: ESP32_S3
TargetSeries: "esp32s3"
BuildOptions:
IDF_Target: esp32s3
TargetName: ESP32_S3_BLE
PackageName: ESP32_S3_BLE
CMakePreset: ESP32_S3_BLE
ESP32_WESP32:
TargetSeries: "esp32"
TargetBoard: ESP32
BuildOptions:
IDF_Target: esp32
TargetName: ESP32_WESP32
PackageName: ESP32_WESP32
CMakePreset: ESP32_WESP32
ESP32_WT32_ETH01:
TargetBoard: ESP32
TargetSeries: "esp32"
BuildOptions:
TargetName: ESP32_WT32_ETH01
IDF_Target: esp32
PackageName: ESP32_WT32_ETH01
CMakePreset: ESP32_WT32_ETH01
variables:
DOTNET_NOLOGO: true
# creates a counter and assigns it to the revision variable
REVISION: $[counter('ESP32_1_10_0_versioncounter', 0)]
IDF_PATH: "D:/a/1/s/esp-idf"
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
TargetPlatform: "esp32"
steps:
- checkout: self
- checkout: esp32_idf
fetchDepth: 1
- template: azure-pipelines-templates/build-preparations.yml
parameters:
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
- template: azure-pipelines-templates/nb-gitversioning.yml
parameters:
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
- template: azure-pipelines-templates/download-install-esp32-build-components.yml
- template: azure-pipelines-templates/download-install-ninja.yml
parameters:
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
- template: azure-pipelines-templates/build-espressif-esp32-targets.yml
- task: CopyFiles@2
condition: succeeded()
displayName: Copying bootloader
inputs:
sourceFolder: '$(Build.SourcesDirectory)\nf-interpreter\build\bootloader'
Contents: |
bootloader.bin
TargetFolder: '$(Build.ArtifactStagingDirectory)\$(TargetPublishName)'
flattenFolders: true
ignoreMakeDirErrors: true
- template: azure-pipelines-templates/copy-sdkconfig.yml
- template: azure-pipelines-templates/pack-publish-artifacts.yml
parameters:
buildDirectory: '$(Build.SourcesDirectory)\nf-interpreter\build'
- template: azure-pipelines-templates/publish-cloudsmith.yml
- template: azure-pipelines-templates/publish-sdkconfig.yml
#################
# TI SimpleLink
- job: Build_TI_SimpleLink_targets
condition: >-
or(
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_ALL'], true),
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_TI'], true),
contains(dependencies.Check_Build_Options.outputs['GetCommitDetails.COMMIT_MESSAGE'], '***BUILD_ALL***'),
and(
eq(variables['Build.Reason'], 'Manual'),
or(
eq(variables['BUILD_ALL__'], 'true'),
eq(variables['BUILD_TI__'], 'true')
)
)
)
dependsOn:
- Check_Build_Options
pool:
vmImage: "windows-latest"
strategy:
matrix:
TI_CC1352R1_LAUNCHXL_868:
TargetBoard: TI_CC1352R1_LAUNCHXL
PackageName: TI_CC1352R1_LAUNCHXL_868
TargetSeries: "CC13X2"
BuildOptions: >-
-DRADIO_FREQUENCY=868
CMakePreset: TI_CC1352R1_LAUNCHXL
variables:
DOTNET_NOLOGO: true
# creates a counter and assigns it to the revision variable
REVISION: $[counter('TI_1_10_0_versioncounter', 0)]
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
TargetPlatform: "ti_simplelink"
steps:
- template: azure-pipelines-templates/build-preparations.yml
- template: azure-pipelines-templates/nb-gitversioning.yml
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
- template: azure-pipelines-templates/download-install-ninja.yml
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
- template: azure-pipelines-templates/pack-publish-artifacts.yml
- template: azure-pipelines-templates/publish-cloudsmith.yml
- template: azure-pipelines-templates/pack-publish-ti-sl-managed-helpers.yml
#################
# Azure RTOS
- job: Build_Azure_RTOS_targets
condition: >-
or(
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_ALL'], true),
eq(dependencies.Check_Build_Options.outputs['TargetsToBuild.BUILD_AZURERTOS'], true),
contains(dependencies.Check_Build_Options.outputs['GetCommitDetails.COMMIT_MESSAGE'], '***BUILD_ALL***'),
and(
eq(variables['Build.Reason'], 'Manual'),
or(
eq(variables['BUILD_ALL__'], 'true'),
eq(variables['BUILD_AZURERTOS__'], 'true')
)
)
)
dependsOn:
- Check_Build_Options
pool:
vmImage: "windows-latest"
strategy:
matrix:
SL_STK3701A_REVB:
TargetBoard: SL_STK3701A_REVB
TargetSeries: "efm32gg11"
BuildOptions:
NeedsDFU: false
NeedsSRECORD: false
TargetName: SL_STK3701A_REVB
PackageName: SL_STK3701A_REVB
CMakePreset: SL_STK3701A_REVB
variables:
# creates a counter and assigns it to the revision variable
REVISION: $[counter('AZURERTOS_1_10_0_versioncounter', 0)]
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
TargetPlatform: "azure_rtos"
steps:
- template: azure-pipelines-templates/build-preparations.yml
- template: azure-pipelines-templates/nb-gitversioning.yml
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
- template: azure-pipelines-templates/download-install-ninja.yml
- template: azure-pipelines-templates/download-hexdfu.yml
- template: azure-pipelines-templates/download-srecord.yml
- template: azure-pipelines-templates/build-azurertos-targets.yml
- template: azure-pipelines-templates/pack-publish-artifacts.yml
- template: azure-pipelines-templates/publish-cloudsmith.yml
- template: azure-pipelines-templates/pack-publish-managed-helpers.yml
#################################
# report build failure to Discord
- job: Report_Build_Failure
dependsOn:
- Build_STM32_targets
- Build_ESP32_targets
- Build_TI_SimpleLink_targets
- Build_Azure_RTOS_targets
condition: >-
or(
failed('Build_STM32_targets'),
failed('Build_ESP32_targets'),
failed('Build_TI_SimpleLink_targets'),
failed('Build_Azure_RTOS_targets')
)
pool:
vmImage: "windows-latest"
steps:
- checkout: self
fetchDepth: 1
# step from template @ nf-tools repo
- template: azure-pipelines-templates/discord-webhook.yml@templates
parameters:
status: "failure"
webhookUrl: "$(DiscordWebhook)"
message: ""