Skip to content

main

main #217

Workflow file for this run

name: main
on:
push:
branches:
- master
- feature/linux
paths:
- 'src/**'
- .github/workflows/main.yml
workflow_dispatch:
jobs:
run:
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
runs-on: [windows-2022, ubuntu-22.04, ubuntu-22.04-arm, macos-13]
steps:
- uses: actions/checkout@v4
- name: Setup NuGet Source
run: |
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --name github --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
dotnet nuget list source
- name: Build code
run: dotnet build -c Debug -p:Optimize=true
- name: Test
shell: bash
run: |
# if [[ "${{ runner.os }}" == "macOS" ]]; then
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Debug --no-build --verbosity normal --filter 'Category!=WindowsOnly' -p:Optimize=true
# elif [[ "${{ runner.os }}" == "Linux" ]]; then
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Debug --no-build --verbosity normal --filter 'Category!=WindowsOnly' -p:Optimize=true
# else
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Debug --no-build --verbosity normal -p:Optimize=true
# fi
export GLOG_v=3
dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Debug --no-build --verbosity normal --filter 'FullyQualifiedName~OfflineModelsTest' -p:Optimize=true