diff options
| author | Jose Santiago Vales Mena <[email protected]> | 2025-08-11 11:48:36 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-11 11:48:36 -0700 |
| commit | 9a897b97d981a715226a3c11b5578285ef747f2b (patch) | |
| tree | 3c12df5607d01a0cf4a446e438a7c5a05dd052bc | |
| parent | 396d2f094da4304b51415bfe33e6fe82333bb56c (diff) | |
| parent | 4f30b7f23e3c0c2a547a3a5cf27087f6bd95c9ad (diff) | |
Merge branch 'microsoft:main' into main
| -rw-r--r-- | .github/workflows/ci.yml | 6 | ||||
| -rw-r--r-- | Build-SampleSet.ps1 | 19 |
2 files changed, 13 insertions, 12 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed0402f2..1f3d7693 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,9 @@ on: paths-ignore: - '**.md' - 'LICENSE' - schedule: - # Runs every Tuesday at 00:00 PST (08:00 UTC) - - cron: '0 8 * * 2' + schedule: + # Runs every Saturday at 00:00 PST (08:00 UTC) + - cron: '0 8 * * 6' jobs: build: name: Build driver samples diff --git a/Build-SampleSet.ps1 b/Build-SampleSet.ps1 index 270a7eaa..42ca7b9a 100644 --- a/Build-SampleSet.ps1 +++ b/Build-SampleSet.ps1 @@ -104,19 +104,20 @@ else { exit 1 } # -# Get the WDK extension version from installed packages -$wdk_extension_ver = Get-ChildItem "${env:ProgramData}\Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" | Select-Object -ExpandProperty Name -$wdk_extension_ver = ([regex]'(\d+\.)(\d+\.)(\d+\.)(\d+)').Matches($wdk_extension_ver).Value -if (-not $wdk_extension_ver) { - # Be lenient with EWDK builds that do not include the package information - if ($build_environment -match '^EWDK') { - $wdk_extension_ver = "(package not found)" - } - else { + +# Be lenient with EWDK builds that do not include the package information +if ($build_environment -match '^EWDK') { + $wdk_extension_ver = "(package is not included for EWDK builds)" +} else { + # Get the WDK extension version from installed packages + $wdk_extension_ver = Get-ChildItem "${env:ProgramData}\Microsoft\VisualStudio\Packages\Microsoft.Windows.DriverKit,version=*" -ErrorAction SilentlyContinue + if (-not $wdk_extension_ver) { Write-Error "No version of the WDK Visual Studio Extension could be found. The WDK Extension is not installed." exit 1 } + $wdk_extension_ver = [regex]::Match($wdk_extension_ver.Name, '(\d+\.){3}\d+').Value } + # # # InfVerif_AdditionalOptions |
