Skip to content

Commit

Permalink
add exit code to step that checks for BMI2 instructions in snappy to …
Browse files Browse the repository at this point in the history
…simplify verification
  • Loading branch information
mangini committed Aug 2, 2024
1 parent f1e1e30 commit 7d143b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/bcny-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,14 @@ jobs:
- name: Check for Snappy BMI2 instructions
run: |
Write-Host "Checking for BMI2 instructions on Snappy.lib..."
dumpbin /DISASM "${{ github.workspace }}/BuildRoot/Library/firebase/usr/libs/windows/snappy.lib" | Select-String -Pattern "bzhi"
$output = dumpbin /DISASM "${{ github.workspace }}/BuildRoot/Library/firebase/usr/libs/windows/snappy.lib" | Select-String -Pattern "bzhi"
if ($output) {
Write-Error "The instruction 'bzhi' was found in the disassembly."
Write-Error $output
exit 1
} else {
Write-Output "Success! The instruction 'bzhi' was not found in the disassembly."
}
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 7d143b0

Please sign in to comment.