Skip to content

Commit 5a755c3

Browse files
committed
Use native XML tooling
1 parent 846276b commit 5a755c3

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/dev.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
156156
Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
157157
- name: Install Dependencies
158-
run: scoop install main/cmake@4.0.1 main/ninja main/saxon-he
158+
run: scoop install main/cmake@4.0.1 main/ninja
159159
- name: Build
160160
run: |
161161
& 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\Launch-VsDevShell.ps1' -arch ${{ matrix.arch }}
@@ -168,15 +168,15 @@ jobs:
168168
- name: Add final_status property
169169
if: success() || failure()
170170
run: |
171-
$xml_file = "report.xml"
172-
$tmp_file = [System.IO.Path]::GetTempFileName()
173-
saxon -s:$xml_file -xsl:".github/workflows/add_final_status.xsl" -o:$tmp_file
171+
$xmlFile = "report.xml"
172+
$xslFile = ".github/workflows/add_final_status.xsl"
173+
$tmpFile = [System.IO.Path]::GetTempFileName()
174+
175+
$transform = New-Object System.Xml.Xsl.XslCompiledTransform
176+
$transform.Load($xslFile)
177+
$transform.Transform($xmlFile, $tmpFile)
174178
175-
if ($LASTEXITCODE -ne 0) {
176-
throw "XSLT transformation failed"
177-
}
178-
179-
Move-Item -Force $tmp_file $xml_file
179+
Move-Item -Force $tmpFile $xmlFile
180180
- name: Upload test report to Datadog
181181
if: success() || failure()
182182
run: |

0 commit comments

Comments
 (0)