Skip to content

Commit 846276b

Browse files
committed
Use saxon
1 parent 45ea450 commit 846276b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/dev.yml

Lines changed: 7 additions & 2 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/libxslt
158+
run: scoop install main/cmake@4.0.1 main/ninja main/saxon-he
159159
- name: Build
160160
run: |
161161
& 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\Launch-VsDevShell.ps1' -arch ${{ matrix.arch }}
@@ -170,7 +170,12 @@ jobs:
170170
run: |
171171
$xml_file = "report.xml"
172172
$tmp_file = [System.IO.Path]::GetTempFileName()
173-
xsltproc --output $tmp_file ".github/workflows/add_final_status.xsl" $xml_file
173+
saxon -s:$xml_file -xsl:".github/workflows/add_final_status.xsl" -o:$tmp_file
174+
175+
if ($LASTEXITCODE -ne 0) {
176+
throw "XSLT transformation failed"
177+
}
178+
174179
Move-Item -Force $tmp_file $xml_file
175180
- name: Upload test report to Datadog
176181
if: success() || failure()

0 commit comments

Comments
 (0)