chore: add diagnostic to workflows

This commit is contained in:
Stevan Freeborn
2026-07-15 11:39:31 -05:00
parent 6160bf05d4
commit b2bdc1d862
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -63,6 +63,13 @@ jobs:
run: dotnet restore src
- name: Build on ${{ matrix.os }}
run: dotnet build --no-restore src
- name: Diagnose downloaded model files
run: |
echo "=== Model file sizes ==="
dir src/BGR.Console\Resources\Files\*.onnx 2>/dev/null || ls -la src/BGR.Console/Resources/Files/*.onnx 2>/dev/null || echo "No model files found"
echo ""
echo "=== File types ==="
file src/BGR.Console/Resources/Files/*.onnx 2>/dev/null || echo "file command not available"
- name: Test on ${{ matrix.os }}
run: dotnet test src --no-build --verbosity normal
- name: Rename test coverage report
+3 -3
View File
@@ -21,11 +21,11 @@
<MakeDir Directories="$(DownloadDirectory)" Condition="!Exists('$(DownloadDirectory)')" />
<Exec Condition="!Exists('$(DownloadDirectory)/rmbg.onnx')" Command="curl -L &quot;https://share.stevanfreeborn.com/bgr/rmbg.onnx&quot; -o &quot;$(DownloadDirectory)/rmbg.onnx&quot;" />
<Exec Condition="!Exists('$(DownloadDirectory)/rmbg.onnx')" Command="curl -L -v &quot;https://share.stevanfreeborn.com/bgr/rmbg.onnx&quot; -o &quot;$(DownloadDirectory)/rmbg.onnx&quot;" />
<Exec Condition="!Exists('$(DownloadDirectory)/u2net.onnx')" Command="curl -L &quot;https://share.stevanfreeborn.com/bgr/u2net.onnx&quot; -o &quot;$(DownloadDirectory)/u2net.onnx&quot;" />
<Exec Condition="!Exists('$(DownloadDirectory)/u2net.onnx')" Command="curl -L -v &quot;https://share.stevanfreeborn.com/bgr/u2net.onnx&quot; -o &quot;$(DownloadDirectory)/u2net.onnx&quot;" />
<Exec Condition="!Exists('$(DownloadDirectory)/modnet.onnx')" Command="curl -L &quot;https://share.stevanfreeborn.com/bgr/modnet.onnx&quot; -o &quot;$(DownloadDirectory)/modnet.onnx&quot;" />
<Exec Condition="!Exists('$(DownloadDirectory)/modnet.onnx')" Command="curl -L -v &quot;https://share.stevanfreeborn.com/bgr/modnet.onnx&quot; -o &quot;$(DownloadDirectory)/modnet.onnx&quot;" />
<ItemGroup>
<EmbeddedResource Include="Resources\Files\**\*" />