Skip to content

Commit 9a897b9

Browse files
authored
Merge branch 'microsoft:main' into main
2 parents 396d2f0 + 4f30b7f commit 9a897b9

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77
paths-ignore:
88
- '**.md'
99
- 'LICENSE'
10-
schedule:
11-
# Runs every Tuesday at 00:00 PST (08:00 UTC)
12-
- cron: '0 8 * * 2'
10+
schedule:
11+
# Runs every Saturday at 00:00 PST (08:00 UTC)
12+
- cron: '0 8 * * 6'
1313
jobs:
1414
build:
1515
name: Build driver samples

Build-SampleSet.ps1

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,20 @@ else {
104104
exit 1
105105
}
106106
#
107-
# Get the WDK extension version from installed packages
108-
$wdk_extension_ver = Get-ChildItem "${env:ProgramData}\Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" | Select-Object -ExpandProperty Name
109-
$wdk_extension_ver = ([regex]'(\d+\.)(\d+\.)(\d+\.)(\d+)').Matches($wdk_extension_ver).Value
110-
if (-not $wdk_extension_ver) {
111-
# Be lenient with EWDK builds that do not include the package information
112-
if ($build_environment -match '^EWDK') {
113-
$wdk_extension_ver = "(package not found)"
114-
}
115-
else {
107+
108+
# Be lenient with EWDK builds that do not include the package information
109+
if ($build_environment -match '^EWDK') {
110+
$wdk_extension_ver = "(package is not included for EWDK builds)"
111+
} else {
112+
# Get the WDK extension version from installed packages
113+
$wdk_extension_ver = Get-ChildItem "${env:ProgramData}\Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" -ErrorAction SilentlyContinue
114+
if (-not $wdk_extension_ver) {
116115
Write-Error "No version of the WDK Visual Studio Extension could be found. The WDK Extension is not installed."
117116
exit 1
118117
}
118+
$wdk_extension_ver = [regex]::Match($wdk_extension_ver.Name, '(\d+\.){3}\d+').Value
119119
}
120+
120121
#
121122
#
122123
# InfVerif_AdditionalOptions

0 commit comments

Comments
 (0)