try macos-15 again #221
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, macos-15] | |
| 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 |